LRU Shard
Store variant that serves the dataset from its files while keeping only a bounded number of file shards resident in memory, evicting the least recently used when the limit is reached. This bounds memory use on large datasets while keeping frequently accessed shards warm.
Configuration
Selected as name: lru-shard.
Option |
Description |
Type |
Default |
|---|---|---|---|
|
Number of file shards kept resident in memory at once. |
int |
required |
services:
record:
store:
name: lru-shard
kwargs:
cache_size: 32