it is related to new Servlet startup
On Jan 30, 4:01 pm, Cristian Nicanor Babula
wrote:
> Could you please post the server-side code that reads the entity from
> memcache?
>
> On 01/30/2010 09:47 PM, Andrei wrote:
>
> > i log where the value comes from
> > for all cases where it takes 4 seconds t
byte data[] = null;
if( cache!=null ){
data = (byte[])cache.get( "data" );
if( data!=null )
log.info( "coming from cache" );
}
if( data==null ){
data = get_data( getServletContext() );
cache.put( "data", data );
log.info( "coming from file" );
Could you please post the server-side code that reads the entity from
memcache?
On 01/30/2010 09:47 PM, Andrei wrote:
i log where the value comes from
for all cases where it takes 4 seconds the entity is already in cache
On Jan 30, 3:41 pm, Cristian Nicanor Babula
wrote:
Try setting a fur
i log where the value comes from
for all cases where it takes 4 seconds the entity is already in cache
On Jan 30, 3:41 pm, Cristian Nicanor Babula
wrote:
> Try setting a further expiration
> date.http://code.google.com/appengine/docs/java/javadoc/com/google/appengi...
>
> On 1/30/2010 9:28 PM, A
Thanks
Than i do not see reason why i have to code it instead
of beeing able to set from admin web console which data to memcache
and for how long
On Jan 19, 3:24 pm, "Ikai L (Google)" wrote:
> Andrei,
>
> No, this is fundamentally impossible with Memcache. Memcache values are
> lazily expired at
Andrei,
No, this is fundamentally impossible with Memcache. Memcache values are
lazily expired at GET time. When you set an expiration on a Memcache item,
all you are really doing is telling Memcache to look at that timestamp
whenever a read operation takes place, throwing it away if it's past the
Are there plans to add notification for expiration?
On Jan 18, 8:30 am, jd wrote:
> There is no event mechanism with memcache. You would need to store
> items in memcache and the datastore at the same time. If memcache
> doesn't have it check the datastore.
>
> On Jan 18, 4:44 am, Andrei wrote
There is no event mechanism with memcache. You would need to store
items in memcache and the datastore at the same time. If memcache
doesn't have it check the datastore.
On Jan 18, 4:44 am, Andrei wrote:
> Is there a way to code Memcache that would notify when particular
> entry is about to exp