asgiref icon indicating copy to clipboard operation
asgiref copied to clipboard

Allow Local instances to be cleared without deleting

Open ababic opened this issue 2 years ago • 2 comments

Greetings, lovely people!

I'm in the process of using Local in a couple of projects, and recently had a case where I wanted to clear cached values based on certain signals, without deleting the object completely.

I'm sure you'll agree the changes are super simple, but I feel this tiny change brings the API more in-line with other familiar cache options, and may help with adoption.

Thank you for all the wonderful work so far, folks.

ababic avatar Apr 20 '23 11:04 ababic

I like the idea, but like anything that touches Local, it looks like the tests need a bit more attention!

andrewgodwin avatar Apr 25 '23 18:04 andrewgodwin

Thanks @andrewgodwin. I was previously relying on the CI to see test results, but I'll get things setup here properly and ensure tests are all ship-shape before requesting a review.

ababic avatar Apr 26 '23 10:04 ababic