tedious / Stash

The place to keep your cache.
http://www.stashphp.com
BSD 3-Clause "New" or "Revised" License
961 stars 133 forks source link

Implement memory limitation for Ephemeral driver #395

Closed Magomogo closed 2 years ago

Magomogo commented 4 years ago

This way we can limit memory occupied by the cached items in Ephemeral driver.

Option name: memoryLimit - keep process memory below this edge by evicting items out of the cache.

coveralls commented 4 years ago

Coverage Status

Coverage increased (+0.2%) to 85.078% when pulling 98b9e683223473b292a6c6db8667b476f7bb050a on Magomogo:memory-limit into 8f1d28c765b257b05e932c28ad75c809e34fe12c on tedious:master.

coveralls commented 4 years ago

Coverage Status

Coverage decreased (-0.008%) to 84.909% when pulling d672fccdaa87c06c26e35dc9d70d4e078d185db8 on Magomogo:memory-limit into 8f1d28c765b257b05e932c28ad75c809e34fe12c on tedious:master.

tedivm commented 2 years ago

I've rebuild the test suite to work on Github- please rebase against the main branch and reopen this pull request if you're still interested in having it merged. Thank you!