GigaSpaces XAP 9.7.2 API

org.openspaces.memcached
Class SpaceCache

java.lang.Object
  extended by org.openspaces.memcached.SpaceCache

public class SpaceCache
extends Object

Author:
kimchy (shay.banon)

Nested Class Summary
static class SpaceCache.DeleteResponse
          Enum defining responses statuses from removal commands
static class SpaceCache.StoreResponse
          Enum defining response statuses from set/add type commands
 
Field Summary
protected  AtomicLong getCmds
           
protected  AtomicLong getHits
           
protected  AtomicLong getMisses
           
protected  AtomicLong setCmds
           
protected  AtomicLong started
           
static int THIRTY_DAYS
           
 
Constructor Summary
SpaceCache(GigaSpace space)
           
 
Method Summary
 SpaceCache.StoreResponse add(LocalCacheElement e)
           
 SpaceCache.StoreResponse append(LocalCacheElement cacheElement)
           
 void asyncEventPing()
           
 SpaceCache.StoreResponse cas(Long cas_key, LocalCacheElement e)
           
 void close()
           
 SpaceCache.DeleteResponse delete(Key key, int time)
           
 boolean flush_all()
           
 boolean flush_all(int expire)
           
 Integer get_add(Key key, int mod)
           
 LocalCacheElement[] get(Key... keys)
           
 long getCurrentBytes()
           
 long getCurrentItems()
           
 long getGetCmds()
           
 long getGetHits()
           
 long getGetMisses()
           
 long getLimitMaxBytes()
           
 long getSetCmds()
           
 SpaceCache.StoreResponse prepend(LocalCacheElement cacheElement)
           
 SpaceCache.StoreResponse replace(LocalCacheElement e)
           
 SpaceCache.StoreResponse set(LocalCacheElement e)
           
 Map<String,Set<String>> stat(String arg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

THIRTY_DAYS

public static final int THIRTY_DAYS
See Also:
Constant Field Values

started

protected final AtomicLong started

getCmds

protected final AtomicLong getCmds

setCmds

protected final AtomicLong setCmds

getHits

protected final AtomicLong getHits

getMisses

protected final AtomicLong getMisses
Constructor Detail

SpaceCache

public SpaceCache(GigaSpace space)
Method Detail

delete

public SpaceCache.DeleteResponse delete(Key key,
                                        int time)

add

public SpaceCache.StoreResponse add(LocalCacheElement e)

replace

public SpaceCache.StoreResponse replace(LocalCacheElement e)

append

public SpaceCache.StoreResponse append(LocalCacheElement cacheElement)

prepend

public SpaceCache.StoreResponse prepend(LocalCacheElement cacheElement)

set

public SpaceCache.StoreResponse set(LocalCacheElement e)

cas

public SpaceCache.StoreResponse cas(Long cas_key,
                                    LocalCacheElement e)

get_add

public Integer get_add(Key key,
                       int mod)

get

public LocalCacheElement[] get(Key... keys)

flush_all

public boolean flush_all()

flush_all

public boolean flush_all(int expire)

close

public void close()
           throws IOException
Throws:
IOException

getCurrentItems

public long getCurrentItems()

getLimitMaxBytes

public long getLimitMaxBytes()

getCurrentBytes

public long getCurrentBytes()

getGetCmds

public long getGetCmds()

getSetCmds

public long getSetCmds()

getGetHits

public long getGetHits()

getGetMisses

public long getGetMisses()

stat

public Map<String,Set<String>> stat(String arg)

asyncEventPing

public void asyncEventPing()

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.