[openstack-dev] [Oslo] Common multi-backend cache library
Eric Windisch
eric at cloudscaling.com
Wed May 8 16:47:31 UTC 2013
There is a redis backend available for the matchmaker (rpc.matchmaker_redis)
I was going to implement a memcache based backend, but abstracting it further is even better.
The service group and matchmaker drivers for memcache and redis do use expiring keys, so this is something that will be needed.
Regards,
Eric Windisch
On Wednesday, May 8, 2013 at 18:37 PM, Flavio Percoco wrote:
> Greetings,
>
> Today, I started working on a common, multi-backend cache library that
> will, hopefully, be incubated in oslo[0] during havana. As part of the
> design / draft phase, I put together some code and pushed it on my GH
> account[1]. Now, I'm at the point that I would love to get some
> feedback from the community so we can agree on the API and what's best
> for it.
>
> A few words about it:
>
> It's inspired in both django's cache and oslo's memorycache modules
> and implements the basic and expected (?) methods. It uses stevedore
> for loading the different back-ends (inspired in the on-going
> messaging re-factor branch).
>
> There's not so much code but it already works. Implemented methods
> are:
>
> - set(sets a key)
> - unset (un-sets a key)
> - add (sets a key if it doesn't exists)
> - incr (increments a key value, used for integer values)
> - append (appends value to a key, some back-ends support this)
>
> Target back-ends for the first release are:
>
> - memory (stole, I mean, implemented)
> - memcached
> - redis
> - file (?)
>
> This is pretty much it. Any feedback, suggestion, use-case, code to
> steal is very welcome.
>
> Cheers,
> FF
>
> [0]
> https://blueprints.launchpad.net/oslo/+spec/cache-backend-abstraction
>
> [1]
> https://github.com/FlaPer87/oslo-incubator/tree/cache/openstack/common/cache
>
> --
> { name: "Flavio Percoco",
> gpg: "87112EC1",
> internal: "8261386",
> phone: "+390687502386",
> irc: ["fpercoco", "flaper87"]}
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org (mailto:OpenStack-dev at lists.openstack.org)
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130508/a7619fba/attachment.html>
More information about the OpenStack-dev
mailing list