{"id":14067858,"url":"https://github.com/kirillseva/cacher","last_synced_at":"2026-02-07T15:37:08.114Z","repository":{"id":69784491,"uuid":"43461617","full_name":"kirillseva/cacher","owner":"kirillseva","description":"In memory cache interface for R","archived":false,"fork":false,"pushed_at":"2018-03-05T17:21:10.000Z","size":39,"stargazers_count":4,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-13T07:13:55.154Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kirillseva.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2015-09-30T21:55:18.000Z","updated_at":"2021-01-20T18:13:11.000Z","dependencies_parsed_at":"2023-06-04T20:15:25.279Z","dependency_job_id":null,"html_url":"https://github.com/kirillseva/cacher","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirillseva%2Fcacher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirillseva%2Fcacher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirillseva%2Fcacher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirillseva%2Fcacher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kirillseva","download_url":"https://codeload.github.com/kirillseva/cacher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228075619,"owners_count":17865506,"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-08-13T07:05:48.985Z","updated_at":"2026-02-07T15:37:08.058Z","avatar_url":"https://github.com/kirillseva.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"# cacher [![codecov.io](http://codecov.io/github/kirillseva/cacher/coverage.svg?branch=master)](http://codecov.io/github/kirillseva/cacher?branch=master)[![Build Status](https://travis-ci.org/kirillseva/cacher.svg)](https://travis-ci.org/kirillseva/cacher)\n\nIn memory caches for R. Currently implements LRU cache with size parameter.\n\nCreate a cache...\n\n```R\ncache \u003c- LRUcache(\"150mb\")  # cache with 150mb of size\ncache2 \u003c- LRUcache(\"1GB\")   # cache with 1GB of size\ncache3 \u003c- LRUcache(3)       # cache that can hold three items of any size (that fits in RAM)\n```\n\nThen use it...\n\n```R\ncache3$set(\"key\", \"this is your value\")  # set a value at a particular key...\ncache3$get(\"key\")                        # ...and get that value back!\n[1] \"this is your value\"\n\ncache3$peek(\"key\")                       # doesn't alter the key's timestamp\n[1] \"this is your value\"\n\ncache3$exists(\"key\")                     # ...see if your key exists\n[1] TRUE\n\ncache3$set(\"key2\", \"hi\")                 # but if you go over your size...\ncache3$set(\"key3\", \"hello\")\ncache3$set(\"key4\", \"yo\")\ncache3$exists(\"key\")                     # ...the oldest key will automatically go away.\n[1] FALSE                                # oldness is determined on when the key was most\n                                         # recently accessed, not when it was set.\n\ncache3$exists(\"key4\")\n[1] TRUE\ncache3$forget(\"key4\")                    # you can also explicitly forget a certain key.\ncache3$exists(\"key4\")\n[1] FALSE\n```\n\n## Installation\n\nInstall with [devtools](https://github.com/hadley/devtools).\n\n```R\ninstall.packages(\"devtools\")\nlibrary(devtools)\ninstall_github(\"kirillseva/cacher\")\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkirillseva%2Fcacher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkirillseva%2Fcacher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkirillseva%2Fcacher/lists"}