mirror of
https://github.com/mattermost/mattermost.git
synced 2026-02-03 20:40:00 -05:00
This is in preparation to make the codebase ready to use Redis. In Redis, iterating all the keys at once is an expensive operation. It is recommended to work on batches of keys. Remove the Len method as it was unused. I tried to repurpose the Keys method to iterate on keys rather than returning all keys at once, but it has other complicacies because the code calls other cache functions on those keys, so to handle the LRU cache properly, it becomes slightly more painful. For now, we keep it like this and rather collect all keys from Redis and then return. https://mattermost.atlassian.net/browse/MM-56987 ```release-note NONE ``` |
||
|---|---|---|
| .. | ||
| mocks | ||
| cache.go | ||
| lru.go | ||
| lru_striped.go | ||
| lru_striped_bench_test.go | ||
| lru_striped_test.go | ||
| lru_test.go | ||
| provider.go | ||
| provider_test.go | ||