{"id":15288083,"url":"https://github.com/agrafix/caching-vault","last_synced_at":"2025-07-30T17:38:11.114Z","repository":{"id":62435681,"uuid":"326315014","full_name":"agrafix/caching-vault","owner":"agrafix","description":"Haskell: A vault-style cache implementation","archived":false,"fork":false,"pushed_at":"2021-01-03T03:04:21.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-17T21:13:49.903Z","etag":null,"topics":["cache","haskell","vault"],"latest_commit_sha":null,"homepage":"https://hackage.haskell.org/package/caching-vault","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/agrafix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-03T02:52:51.000Z","updated_at":"2021-01-03T03:04:45.000Z","dependencies_parsed_at":"2022-11-01T21:30:30.118Z","dependency_job_id":null,"html_url":"https://github.com/agrafix/caching-vault","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agrafix%2Fcaching-vault","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agrafix%2Fcaching-vault/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agrafix%2Fcaching-vault/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agrafix%2Fcaching-vault/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agrafix","download_url":"https://codeload.github.com/agrafix/caching-vault/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245206531,"owners_count":20577582,"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":["cache","haskell","vault"],"created_at":"2024-09-30T15:44:05.075Z","updated_at":"2025-03-24T03:45:38.708Z","avatar_url":"https://github.com/agrafix.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# caching-vault\n\nA simple [vault](https://hackage.haskell.org/package/vault) style cache implementation based on [stm-containers](https://hackage.haskell.org/package/stm-containers).\n\n## Example\n\n``` haskell\nimport Data.Time\nimport qualified Data.Cache.Vault as C\n\nmain :: IO ()\nmain =\n  do cache \u003c- C.newCache\n     let key :: C.Key String\n         key = C.mintLabeledKey \"foo\"\n     C.insert key Nothing \"cached value\" cache\n     \n     now \u003c- getCurrentTime\n     value \u003c- C.lookup now key cache\n     case value of\n       Nothing -\u003e putStrLn \"Cache miss\"\n       Just val -\u003e putStrLn (\"Cache value is: \" \u003c\u003e val)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagrafix%2Fcaching-vault","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagrafix%2Fcaching-vault","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagrafix%2Fcaching-vault/lists"}