I have some cool code that uses getActiveVersion to make sure the cache is always uptodate.
If the node has changed I need to do two things:
remove(key)
get(key, fn)
I would like a update(key, fn) function that would overwrite the cache.
Perhaps it could be optimized because it does not need to check wether key already exists.
I have some cool code that uses getActiveVersion to make sure the cache is always uptodate.
If the node has changed I need to do two things:
I would like a update(key, fn) function that would overwrite the cache. Perhaps it could be optimized because it does not need to check wether key already exists.