Re: svn commit: r30173 - in branches/in-memory-cache/subversion: include libsvn_subr
From: Blair Zajac <blair_at_orcaware.com>
Date: Wed, 02 Apr 2008 14:20:57 -0700
glasser_at_tigris.org wrote:
For memcached I suggest exposing the memcached flags value.
Uses for the key:
1) It's a very useful tool for not having to encode additional information in
2) Hash some unique value into N bits of the flags. Each
3) Use some bits of the flags to indicate compression. You can not compress
So I suggest modeling this API to be similar to the *gasp* new Java API which is
http://bleu.west.spy.net/~dustin/projects/memcached/apidocs/
Have a new type, say cached_data that contains a
struct svn_cached_data
So something like
typedef svn_error_t *(svn_cache_deserialize_func_t)(void **out,
typedef svn_error_t *(svn_cache_serialize_func_t)(svn_cached_data **data,
I think you'll find not having the flags available will be a drawback sometime
I realize that an in-process cache won't need a flags value, but better to have
BTW, I'm doing the same thing in my Subversion server, but at a higher level.
Blair
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.