public final class ShardingRouteCache extends Object
| Constructor and Description |
|---|
ShardingRouteCache(ShardingCacheOptions cacheOptions) |
| Modifier and Type | Method and Description |
|---|---|
Optional<ShardingRouteCacheValue> |
get(ShardingRouteCacheKey key)
Get cached route result.
|
void |
put(ShardingRouteCacheKey key,
ShardingRouteCacheValue value)
Cache route result.
|
public ShardingRouteCache(ShardingCacheOptions cacheOptions)
public void put(ShardingRouteCacheKey key, ShardingRouteCacheValue value)
key - cache keyvalue - cache valuepublic Optional<ShardingRouteCacheValue> get(ShardingRouteCacheKey key)
key - cache keyCopyright © 2023 The Apache Software Foundation. All rights reserved.