Custom cache engine for picsCache
See original GitHub issueLike the custom storage engine for cached files, allow us to customize the way picsCache
gets stored. Perhaps we maintain our own (big) database of product infos and we don’t want to store it all to memory in the picsCache
property. Or we ignore it with the potential of duplicated memory, which is terribly inefficient.
For example:
user.picsCache.on('updateApp', function(appid, appinfo, callback) {
someStorageSystem.saveFile(appid + ".json", JSON.stringify(appinfo), function(err) {
callback(err);
});
});
user.picsCache.on('readApp', function(appid, callback) {
someStorageSystem.readFile(appid + ".json", function(err, contents) {
if(err) {
callback(err);
return;
}
callback(null, JSON.parse(contents));
});
});
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Creating an image service cache—ArcGIS Server
Creating a cache of pregenerated images (tiles) can help your image service ... If you want ArcGIS to suggest some scales for you,...
Read more >Caches - ImageKit.io Docs
Caches. ImageKit.io provides two ways to deliver images for your website - from the media library, or your server/storage. Each of these image...
Read more >ImageEngine Control Panel
Engines ; Customize Image Delivery; Purge cache; Traffic Report & Analytics. ImageEngine Control Panel.
Read more >Can I cache our custom docker image? - CircleCI Discuss
I'd like my primary build image, the one used in all the steps to be cached. BeyondEvil November 27, 2019, 8:15am ...
Read more >Glide v4 : Caching - GitHub Pages
Memory cache - Was this image recently loaded and still in memory? ... If you are using a custom model, it needs to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
No, the PICS cache is entirely in-memory. Appdata is used for:
ah yes, this is what I remember.