org.openanzo.atom.memcached
Class MemcachedCacheTable

java.lang.Object
  extended by org.openanzo.atom.memcached.MemcachedCacheTable
All Implemented Interfaces:
CacheTable

public class MemcachedCacheTable
extends java.lang.Object
implements CacheTable

Implementation of AtomCache CacheTable using a memcached client. For now, our client/server implementation does not allow us to keep the connection open so on each call, we construct a new client connection for each operation. Once we solve this, we can implement a pool of MemcachedClient instances.

Author:
Ben Szekely (bhszekel@us.ibm.com)

Constructor Summary
MemcachedCacheTable(MemcachedClientPool pool)
           
 
Method Summary
 void clear()
           
 java.lang.Object get(java.lang.String key)
           
 void put(java.lang.String key, java.lang.Object value)
           
 void remove(java.lang.String key)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemcachedCacheTable

public MemcachedCacheTable(MemcachedClientPool pool)
Method Detail

clear

public void clear()
           throws CacheException
Specified by:
clear in interface CacheTable
Throws:
CacheException

get

public java.lang.Object get(java.lang.String key)
                     throws CacheException
Specified by:
get in interface CacheTable
Throws:
CacheException

put

public void put(java.lang.String key,
                java.lang.Object value)
         throws CacheException
Specified by:
put in interface CacheTable
Throws:
CacheException

remove

public void remove(java.lang.String key)
            throws CacheException
Specified by:
remove in interface CacheTable
Throws:
CacheException


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.