Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Implement MemoryStore #39
Here is a very basic implementation of abstract adapter for storages.
The idea is that we keep all the code we had in the Redis adapter and just use the appropriate
Note: I've tried to keep it as much backward compatible as possible but I'm not sure if we really need to configure things like
Thank you, that's a nice work!
But at the moment the main goal is to get rid of extra dependency (redis), and not to introduce a new one (mock_redis). So far as we're using a pretty limited subset of redis functionality it should be possible to build a simple memory store from scratch.
As a followup for #39 (comment), I've redesigned API for adapters.
Now each descendant has to implement the following public methods:
Also, the following protected methods should be implemented too: