question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom cache engine for picsCache

See original GitHub issue

Like 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:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
DoctorMcKaycommented, Feb 21, 2020

No, the PICS cache is entirely in-memory. Appdata is used for:

  • Sentry files
  • Depot decryption keys
  • Apptickets
  • Machine IDs (if you opt for the PersistentRandom machine ID)
  • Server lists
  • The last cellID you connected to
0reactions
Revadikecommented, Feb 21, 2020
  • Depot decryption keys

ah yes, this is what I remember.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found