{"id":15294769,"url":"https://github.com/gokberkbar/memory_cache","last_synced_at":"2025-06-14T18:07:40.219Z","repository":{"id":54651631,"uuid":"522568414","full_name":"gokberkbar/memory_cache","owner":"gokberkbar","description":"Memory Cache is simple, fast and global in-memory cache with CRUD features.","archived":false,"fork":false,"pushed_at":"2023-01-31T12:53:53.000Z","size":8,"stargazers_count":20,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-14T18:07:37.807Z","etag":null,"topics":["cache","dart","flutter","pubdev"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/memory_cache","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gokberkbar.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}},"created_at":"2022-08-08T13:49:56.000Z","updated_at":"2024-05-10T10:46:44.000Z","dependencies_parsed_at":"2023-02-16T19:16:14.290Z","dependency_job_id":null,"html_url":"https://github.com/gokberkbar/memory_cache","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/gokberkbar/memory_cache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gokberkbar%2Fmemory_cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gokberkbar%2Fmemory_cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gokberkbar%2Fmemory_cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gokberkbar%2Fmemory_cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gokberkbar","download_url":"https://codeload.github.com/gokberkbar/memory_cache/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gokberkbar%2Fmemory_cache/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259860406,"owners_count":22922987,"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","dart","flutter","pubdev"],"created_at":"2024-09-30T17:06:52.535Z","updated_at":"2025-06-14T18:07:40.198Z","avatar_url":"https://github.com/gokberkbar.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Memory Cache\n\nMemory Cache is simple, fast and global in-memory cache.\n\n## Features\n\n- Create, read, update, delete and invalidate cache.\n- Expirable Cache\n- Creating local MemoryCache instance.\n\n## Getting started\n\n### Use this package as a Library\n---\nDepend On it\n\nRun this command\n\nwith Dart: \n```\n$ dart pub add memory_cache\n```\nwith Flutter: \n```\n$ flutter pub add memory_cache\n```\nThis will add a line like this to your package's pubspec.yaml (and run an implicit `dart pub get` or `flutter pub get`):\n```\ndependencies:\n  memory_cache: ^1.2.0\n```\n\n## Usage\n\n### Create New Value\n```dart\nMemoryCache.instance.create('myKey', 'myValue');\n```\nwith Expiry:\n```dart\nMemoryCache.instance.create(\n    'myKey',\n    'myValue',\n    expiry: const Duration(seconds: 5),\n  );\n```\n\n### Read Value\n```dart\nfinal myValue = MemoryCache.instance.read\u003cString\u003e('myKey');\n```\n\n### Update Value\n```dart\nMemoryCache.instance.update('myKey', 'myUpdatedValue');\n```\n\n### Delete Value\n```dart\nMemoryCache.instance.delete('myKey');\n```\n\n### Local Instance\n\nMemoryCache can be created locally and same features will be supported\n\n```dart\nfinal MemoryCache localCache = MemoryCache();\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgokberkbar%2Fmemory_cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgokberkbar%2Fmemory_cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgokberkbar%2Fmemory_cache/lists"}