There are DB struct methods: get, set. Write a cache that:
Условие
Заголовок раздела «Условие»There are DB struct methods: get, set. Write a cache that:
- on write to DB, after successful DB write -> writes to cache;
- on read: first check cache, if no value -> go to DB.
Решение
Заголовок раздела «Решение»Источник: InDrive - 2 · Q1 2025
Все задачи · NoSQL и кэш · Реализовать TTL cache и методы Push, Po… →