Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you pls clarify... new set items, does it move to the front with the old set item still inside cache or...? #58

Open
superdolt opened this issue Jul 24, 2021 · 1 comment

Comments

@superdolt
Copy link

Can you pls clarify... new set items, does it move to the front with the old set item still inside cache or...?

both same key
cache new = key -> valueNew
cache old = key -> valueOld

Before
fastcache = [cacheOld -> valueOld]

After
e.g.
fastcache = [ cache new -> valueNew, cache old -> valueOld]
or
fastcache = [cache new -> valueNew]

@hiqsociety
Copy link

  1. i'm curious over this issue as well, does anyone know? because trying to use as a in memory storage. not sure if consistently writing a lot of same key will evict the other keys.

  2. will upgrade to fastcache in future versions stick to same strategy or use another eviction method? just curious over direction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants