aio-libs/aiocache

SimpleMemoryBackend - set max size

Open

#498 opened on Jun 15, 2020

View on GitHub
 (15 comments) (12 reactions) (0 assignees)Python (177 forks)auto 404
featuregood first issue

Repository metrics

Stars
 (1,432 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

When using SimpleMemoryBackend, should be important set the max size of internal dict

an idea is use an algorithm to select what to do when dict is "full", remove last element, first, random, rlu ...

Contributor guide