{"id":16859568,"url":"https://github.com/raphw/guava-cache-overflow-extension","last_synced_at":"2025-03-22T06:31:27.924Z","repository":{"id":9606555,"uuid":"11529583","full_name":"raphw/guava-cache-overflow-extension","owner":"raphw","description":"A Guava cache extension that allows caches to overflow to disk.","archived":false,"fork":false,"pushed_at":"2013-11-09T11:34:23.000Z","size":220,"stargazers_count":55,"open_issues_count":1,"forks_count":18,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-18T09:03:03.470Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/raphw.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}},"created_at":"2013-07-19T14:29:34.000Z","updated_at":"2022-09-21T09:33:04.000Z","dependencies_parsed_at":"2022-08-30T09:31:54.711Z","dependency_job_id":null,"html_url":"https://github.com/raphw/guava-cache-overflow-extension","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/raphw%2Fguava-cache-overflow-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphw%2Fguava-cache-overflow-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphw%2Fguava-cache-overflow-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphw%2Fguava-cache-overflow-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raphw","download_url":"https://codeload.github.com/raphw/guava-cache-overflow-extension/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244918500,"owners_count":20531682,"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-13T14:18:24.367Z","updated_at":"2025-03-22T06:31:25.940Z","avatar_url":"https://github.com/raphw.png","language":"Java","readme":"A Guava cache extension that allows caches to persist cache entries when they cannot longer be stored in memory.\nAn implementation that overflows to the file system is provided including a corresponding `CacheBuilder` with similar semantics than the Guava `CacheBuilder`.\n\nFor creating a cache that overflows to disk, just proceed as when using the Guava CacheBuilder:\n\n```java\nCache\u003cString, String\u003e stringCache =\n  FileSystemCacheBuilder.newBuilder()\n    .maximumSize(100L)\n    .softValues()\n    .build();\n```\n\n**Note**: This cache implementation has slightly different semantics than the `Cache` / `LoadingCache` interface contracts specify:\n* Any limits set for this cache do only concern the cache's memory size. Cache entries exceeding this limit will overflow to disk.\n* When calling the non-argument `invalidateAll()` method, the RemovalListener is only informed about the expiration of entries that are still stored in memory.\n* When the cache is not longer in use, its `invalidateAll()` method should be called if the cache's overflow folder is not cleared by the operating system.\n* There is a minimal risk of concurrency issues since cache entries are still accessible when the `RemovalListener` which is responsible for serializing the cache entry writes the entry to disk. This problem does not matter for immutable cache objects, but mutable state might get lost when cache entries are retreived while they are serialized. \n\nLicensed under the Apache Software License, Version 2.0\n\n[![Build Status](https://travis-ci.org/raphw/guava-cache-overflow-extension.png)](https://travis-ci.org/raphw/guava-cache-overflow-extension)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphw%2Fguava-cache-overflow-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraphw%2Fguava-cache-overflow-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphw%2Fguava-cache-overflow-extension/lists"}