Every item stored in memcache can have an individual expiration time, all
client libraries have support for specifying this. If you want to set the
expiration time, then you need to change your code where you store items and
add it.


/Henrik

On Tue, Apr 20, 2010 at 14:20, Darvin Denmian <[email protected]>wrote:

> Hello,
>
>
> How can I set a ttl for the stored itens in memcached?
> Is there some documentation where I can find this information?
>
> Thanks.
>
> On Tue, Apr 20, 2010 at 1:40 AM, Dustin <[email protected]> wrote:
> >
> > On Apr 19, 9:04 pm, Jay Paroline <[email protected]> wrote:
> >> Interestingly, I also recently noticed that we are using around 75% of
> >> the allocated space on each of our buckets even though they have been
> >> up for 7.5 months. For us that's still more than enough space so I'm
> >> not worried about it.
> >>
> >> If it helps at all we're using an older version of memcached, 1.4.1,
> >> each bucket is 1GB and has about 740MB of that used. A lot of stuff we
> >> set gets deleted or expired, but there are plenty of things that get
> >> set with no expiration. You'd expect the buckets to fill up
> >> eventually...
> >
> >  Hard to say without looking at things over time / looking at
> > individual slabs.  You do have a lot of evictions, so it's possible
> > that you could benefit from using more of the memory you have
> > allocated.
> >
> >  List "stats slabs" and "stats items" to get more info (preferably
> > more than once with a bit of a delay).
> >
> >  1.4.3 improved slab sizing, but you may have a somewhat common
> > problem of a memcached that has learned about how your use your data
> > and the things it learns are now wrong.
> >
> >
> > --
> > Subscription settings:
> http://groups.google.com/group/memcached/subscribe?hl=en
> >
>

Reply via email to