memory_cache
मेमोरी कैश सरल, तेज़ और CRUD विशेषताओं के साथ वैश्विक मेमोरी कैश है।
मेमोरी कैश सरल, तेज़ और CRUD विशेषताओं के साथ वैश्विक मेमोरी कैश है।
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
Memory Cache is simple, fast and global in-memory cache.
Depend On it
Run this command
with Dart:
$ dart pub add memory_cache
with Flutter:
$ flutter pub add memory_cache
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get or flutter pub get):
dependencies:
memory_cache: ^1.2.0
MemoryCache.instance.create('myKey', 'myValue');
with Expiry:
MemoryCache.instance.create(
'myKey',
'myValue',
expiry: const Duration(seconds: 5),
);
final myValue = MemoryCache.instance.read<String>('myKey');
MemoryCache.instance.update('myKey', 'myUpdatedValue');
MemoryCache.instance.delete('myKey');
MemoryCache can be created locally and same features will be supported
final MemoryCache localCache = MemoryCache();
उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗