org.apache.http.impl.client.cache.memcached
Class MemcachedHttpCacheStorage

java.lang.Object
  extended by org.apache.http.impl.client.cache.memcached.MemcachedHttpCacheStorage
All Implemented Interfaces:
HttpCacheStorage

public class MemcachedHttpCacheStorage
extends Object
implements HttpCacheStorage


Constructor Summary
MemcachedHttpCacheStorage(InetSocketAddress address)
           
MemcachedHttpCacheStorage(MemcachedClientIF cache)
           
MemcachedHttpCacheStorage(MemcachedClientIF client, CacheConfig config, HttpCacheEntrySerializer serializer)
           
 
Method Summary
 HttpCacheEntry getEntry(String url)
           
 void putEntry(String url, HttpCacheEntry entry)
           
 void removeEntry(String url)
           
 void updateEntry(String url, HttpCacheUpdateCallback callback)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemcachedHttpCacheStorage

public MemcachedHttpCacheStorage(InetSocketAddress address)
                          throws IOException
Throws:
IOException

MemcachedHttpCacheStorage

public MemcachedHttpCacheStorage(MemcachedClientIF cache)

MemcachedHttpCacheStorage

public MemcachedHttpCacheStorage(MemcachedClientIF client,
                                 CacheConfig config,
                                 HttpCacheEntrySerializer serializer)
Method Detail

putEntry

public void putEntry(String url,
                     HttpCacheEntry entry)
              throws IOException
Specified by:
putEntry in interface HttpCacheStorage
Throws:
IOException

getEntry

public HttpCacheEntry getEntry(String url)
                        throws IOException
Specified by:
getEntry in interface HttpCacheStorage
Throws:
IOException

removeEntry

public void removeEntry(String url)
                 throws IOException
Specified by:
removeEntry in interface HttpCacheStorage
Throws:
IOException

updateEntry

public void updateEntry(String url,
                        HttpCacheUpdateCallback callback)
                 throws HttpCacheUpdateException,
                        IOException
Specified by:
updateEntry in interface HttpCacheStorage
Throws:
HttpCacheUpdateException
IOException


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.