public final class Store extends Object
Object. The value for a key is built on its first access and
reused for every subsequent access with that key.
Each connection holds one Store to cache the command APIs created through its commands(...) accessors, so a
given factory key yields a single instance per connection.
| Constructor and Description |
|---|
Store() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
compute(Object key,
Supplier<T> builder)
Returns the value cached under
key, building it via builder on first access. |
public <T> T compute(Object key, Supplier<T> builder)
key, building it via builder on first access. The builder runs at most
once per key.T - the value typekey - the cache keybuilder - builds the value on a cache missCopyright © 2026 lettuce.io. All rights reserved.