{"id":16573578,"url":"https://github.com/v2e4lisp/lru-cache","last_synced_at":"2025-06-18T13:37:06.561Z","repository":{"id":18045591,"uuid":"21093155","full_name":"v2e4lisp/lru-cache","owner":"v2e4lisp","description":"simple lru-cache","archived":false,"fork":false,"pushed_at":"2014-06-22T13:09:05.000Z","size":148,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-16T03:51:36.301Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/v2e4lisp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-22T12:28:27.000Z","updated_at":"2014-06-22T13:09:05.000Z","dependencies_parsed_at":"2022-09-17T04:01:50.838Z","dependency_job_id":null,"html_url":"https://github.com/v2e4lisp/lru-cache","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v2e4lisp%2Flru-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v2e4lisp%2Flru-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v2e4lisp%2Flru-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v2e4lisp%2Flru-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/v2e4lisp","download_url":"https://codeload.github.com/v2e4lisp/lru-cache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242049086,"owners_count":20063505,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T21:42:33.346Z","updated_at":"2025-03-05T15:22:32.757Z","avatar_url":"https://github.com/v2e4lisp.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LRU::Cache\n\nsimple LRU cache\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'lru-cache'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install lru-cache\n\n## Usage\n\n```ruby\nrequire 'lru/cache'\n\n# create a lru cache(size = 10)\nlru = LRU.create 10\n\n# set a item\nlru[:k1] = :v1\nlru.set :k2, :v2\n\n# get a item\nlru[:k1]\nlru.get :k1\n\n# get upper limit\nlru.max\n\n# get lru content\nlru.content\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv2e4lisp%2Flru-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fv2e4lisp%2Flru-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv2e4lisp%2Flru-cache/lists"}