You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A dumb question, in the base allocate function, we need to specify the pool_id (cache->allocate(pool_id, key, size)). Does it means we allow different pool has same keys (for example pool1 has key "foo", pool2 can also have key "foo")?
If we allow same key in different pool, in find function, I found we can only find the cache by key. ItemHandle find(Key key, AccessMode mode = AccessMode::kRead);
I didn't find any find function and find the cache by key and pool_id. Is that not supported?
The text was updated successfully, but these errors were encountered:
Does it means we allow different pool has same keys (for example pool1 has key "foo", pool2 can also have key "foo")?
Nope. Both pools would share the same key space. Assuming you allocate an item in pool1 with "foo" and insert that into the cache; then allocate item pool2 with "foo" again, this item will have to be inserted with insertOrReplace because it is the same key.
A dumb question, in the base allocate function, we need to specify the pool_id (cache->allocate(pool_id, key, size)). Does it means we allow different pool has same keys (for example pool1 has key "foo", pool2 can also have key "foo")?
If we allow same key in different pool, in find function, I found we can only find the cache by key.
ItemHandle find(Key key, AccessMode mode = AccessMode::kRead);
I didn't find any find function and find the cache by key and pool_id. Is that not supported?
The text was updated successfully, but these errors were encountered: