Dormando,
Quick question.

So if I were to
put (key, array_of_size_3)
and then
append (key, new_item)

value = get (key)
size of value will be 4 ?

Siddharth

On Tue, Nov 22, 2011 at 2:05 PM, dormando <[email protected]> wrote:

> > Well, if I need to put another object in the collection, I need to first
> get it the existing object from the cache. And then insert this new object
> > within that collection. Reducing performance by that much. But I
> understand that perf will not drop considerably since a get is much faster,
> and its
> > only 1 more get for every put.
> > If memcached would provide such a feature, it would have to manage a
> collection instead of a value. And allow a api to "insert duplicate". And
> fetch
> > a collection instead of a object. Much faster than the former approach
> above.
> >
> > Ok, let me ask this question (sorry if Im being lame here, just point me
> to the doc's if I missed something). Is there a way to define a set (or
> > region as it would be on microsoft velocity) ?
>
> You should read through the wiki: http://memcached.org/wiki - there're
> some programming sections with examples. Using namespacing is probably
> similar to what you're talking about with regions.
>
> If you're managing a list, you may also be able to use the append and/or
> prepend commands to stack sets of bytes without re-fetching the object.

Reply via email to