Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RedisTableCache #30

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

RedisTableCache #30

wants to merge 2 commits into from

Conversation

howcheng
Copy link

NOTE: I am unable to test this code as written because I don't have local instances of Memcached or Redis. Sorry. However, I did port the code I wrote for work, and it's operational there.

  • Created a base TableCache class that now contains most of the logic from EnyimTableCache. Likewise, created base IndexCreator and ProjectionIndexCreator classes.
  • Decoupled the actual cache provider from the TableCache class by creating an ICacheClient interface
  • EnyimTableCache now only overrides the base class for things are that specific to Memcached (key lengths, using CAS)

Hopefully I didn't mess it up too badly. :)

@scale-tone
Copy link
Owner

Hi Howard,

Thanks for your efforts, but the thing is that Redis is a much more advanced storage, than MemcacheD. It provides features like structured data types and transactions, and these are very useful when implementing caching for Linq2DynamoDb. I just commited my own implementation, and I would kindly ask you to beta-test it in your real scenarios. Would appreciate any feedback.

Notice, that because of Redis advanced features it took almost half less code to do that with Redis, than with MemcacheD!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants