{"id":16746586,"url":"https://github.com/helightdev/canister","last_synced_at":"2026-02-17T01:01:07.382Z","repository":{"id":193158302,"uuid":"688259348","full_name":"helightdev/canister","owner":"helightdev","description":"A versatile and extensible caching library written in pure Dart, offering Guava-like caching capabilities.","archived":false,"fork":false,"pushed_at":"2023-12-12T17:55:09.000Z","size":66,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-28T15:41:20.708Z","etag":null,"topics":["caching","dart","flutter"],"latest_commit_sha":null,"homepage":"","language":"Dart","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/helightdev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2023-09-07T01:37:17.000Z","updated_at":"2024-11-07T07:08:20.000Z","dependencies_parsed_at":"2025-04-15T02:41:37.341Z","dependency_job_id":"00bc2d08-468e-4869-9cd9-e9baabb45057","html_url":"https://github.com/helightdev/canister","commit_stats":null,"previous_names":["helightdev/canister"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/helightdev/canister","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helightdev%2Fcanister","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helightdev%2Fcanister/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helightdev%2Fcanister/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helightdev%2Fcanister/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/helightdev","download_url":"https://codeload.github.com/helightdev/canister/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helightdev%2Fcanister/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29528229,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T00:57:22.232Z","status":"ssl_error","status_checked_at":"2026-02-17T00:54:25.811Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["caching","dart","flutter"],"created_at":"2024-10-13T02:07:13.225Z","updated_at":"2026-02-17T01:01:07.357Z","avatar_url":"https://github.com/helightdev.png","language":"Dart","readme":"# Canister - A Versatile Dart Caching Library\n![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/helightdev/canister/dart.yaml)\n![Pub Version (including pre-releases)](https://img.shields.io/pub/v/canister?color=brightgreen)\n![Pub Points](https://img.shields.io/pub/points/canister)\n![Pub Likes](https://img.shields.io/pub/likes/canister?color=brightgreen)\n\nCanister is a powerful and extensible caching library for Dart, offering a wide range of caching\nstrategies and features to enhance the performance of your Dart applications.\nWhether you need to reduce latency, optimize data retrieval, or implement memoization,\nCanister has you covered.\n\n## Features\n\n- **Extensible**: Customize and extend Canister to tailor caching strategies to your specific needs.\n- **Guava-Like Caches**: Familiar caching patterns inspired by Guava's caching library.\n- **Lazy Computations**: Easily make your existing functions compute lazily.\n- **Asynchronous Caching**: Seamlessly handle asynchronous operations for modern Dart applications.\n- **Memoization**: Efficiently cache function results to eliminate redundant computations.\n- **Expiration Policies**: Configure expiration rules based on write or read operations.\n- **Weight Functions**: Assign weights to cache entries for advanced cache management.\n- **Removal Listeners**: Trigger actions when cache entries are removed, adding flexibility and functionality.\n\n## Installation\nAdd the following dependency to your `pubspec.yaml`:\n```yaml\ndependencies:\n  canister: ^1.0.0\n```\n\n## Usage\n```dart\nimport 'package:canister/canister.dart';\n\nvoid main() {\n  // Create and configure a cache\n  final cache = CacheBuilder\u003cString, int\u003e()\n      .capacity(100)\n      .expireAfterWrite(Duration(minutes: 30))\n      .build();\n\n  // Put a value into the cache\n  cache.put('key', 42);\n\n  // Get a value from the cache\n  final value = cache.get('key');\n  print('Cached Value: $value');\n}\n```\nFore more examples, have a look at the example folder.\n\n## Contributing\nContributions are welcome! If you find any issues or have suggestions for improvement,\nplease open an issue or submit a pull request on our GitHub repository.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelightdev%2Fcanister","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhelightdev%2Fcanister","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelightdev%2Fcanister/lists"}