{"id":29829175,"url":"https://github.com/beapp/beapp.library.cache.android","last_synced_at":"2025-10-28T09:48:40.841Z","repository":{"id":92923297,"uuid":"235577499","full_name":"BeApp/beapp.library.cache.android","owner":"BeApp","description":"This library provides a cache mechanism relying on RxJava.","archived":false,"fork":false,"pushed_at":"2020-02-21T16:18:02.000Z","size":219,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-07-29T08:42:08.242Z","etag":null,"topics":["android","cache","paperdb","rx","snappydb"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BeApp.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-01-22T13:17:51.000Z","updated_at":"2020-02-21T16:18:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"3a2229a1-ca3c-470d-ba04-c238d29ebf0e","html_url":"https://github.com/BeApp/beapp.library.cache.android","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/BeApp/beapp.library.cache.android","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeApp%2Fbeapp.library.cache.android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeApp%2Fbeapp.library.cache.android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeApp%2Fbeapp.library.cache.android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeApp%2Fbeapp.library.cache.android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BeApp","download_url":"https://codeload.github.com/BeApp/beapp.library.cache.android/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeApp%2Fbeapp.library.cache.android/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269970120,"owners_count":24505466,"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","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["android","cache","paperdb","rx","snappydb"],"created_at":"2025-07-29T08:15:28.423Z","updated_at":"2025-10-28T09:48:35.525Z","avatar_url":"https://github.com/BeApp.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"This library provides a cache mechanism relying on [RxJava](https://github.com/ReactiveX/RxJava).\nThere are currently two storage implementation :\n\n* [SnappyDb](https://github.com/nhachicha/SnappyDB)\n* [PaperDb](https://github.com/pilgr/Paper)\n\n# Usage\n\nTwo steps are needed :\n\n1. Prepare an instance of your storage implementation\n2. Declare an instance of RxCache with the storage implementation\n3. Call `fromKey` method from RxCache instance and configure the strategy for this call\n \n \n```java\nfinal Storage storage = new SnappyDBStorage();\nfinal RxCache rxCache = new RxCache(storage);\n\nrxCache.fromKey(\"remotedata_%d\", 1)\n    .withStrategy(CacheStrategy.cacheThenAsync())\n    .withAsync(...) // Your async observable method (Retrofit call for example)\n    .toObservable()\n    .subscribe(result -\u003e ..., \n        throwable -\u003e ...);\n```\n\n# Installation\n\nAdd jcenter's repository in your project's repositories list, then add the dependency.\n\n```groovy\nrepositories {\n    jcenter()\n}\n\ndependencies {\n    implementation 'fr.beapp.cache:cache-core:\u003clatest-version\u003e'\n\n    // Pick one of the following\n    implementation 'fr.beapp.cache:cache-storage-snappydb:\u003clatest-version\u003e'\n    implementation 'fr.beapp.cache:cache-storage-paperdb:\u003clatest-version\u003e'\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeapp%2Fbeapp.library.cache.android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeapp%2Fbeapp.library.cache.android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeapp%2Fbeapp.library.cache.android/lists"}