Closed onebula closed 2 years ago
It was an intentional design decision not to implement __getitem__ and __setitem__. I only wanted a single way to get/set keys.
__getitem__
__setitem__
Besides, cache.get(key) doesn't raise KeyError when key does not exist, is it an intentional design?
Yes, that was also intentional.
It was an intentional design decision not to implement
__getitem__
and__setitem__
. I only wanted a single way to get/set keys.