Skip navigation links
B C D F G L P R S T U 

B

bulk(List<?>) - Method in class com.cloudant.client.cache.DatabaseCache
Uses the _bulk_docs endpoint to insert multiple documents into the database in a single HTTP request.

C

Cache<K,V> - Interface in com.cloudant.client.cache
 
CacheEntry<V> - Class in com.cloudant.client.cache
 
CacheEntry(V, long) - Constructor for class com.cloudant.client.cache.CacheEntry
 
CacheWithLifetimes<K,V> - Interface in com.cloudant.client.cache
 
clear() - Method in interface com.cloudant.client.cache.Cache
Delete all entries from the cache.
clear() - Method in class com.cloudant.client.cache.LRUCache
Delete all entries from the cache.
clear() - Method in class com.cloudant.client.cache.redis.RedisCache
Delete all entries from the cache.
close() - Method in class com.cloudant.client.cache.redis.RedisCache
Close the Redis connection.
com.cloudant.client.cache - package com.cloudant.client.cache
Primary package for cloudant-client-cache.
com.cloudant.client.cache.redis - package com.cloudant.client.cache.redis
Provides a CacheWithLifetimes implementation that uses a Redis instance as the cache store.
compress(Serializable) - Static method in class com.cloudant.client.cache.Util
Compress a serializable object using gzip
contains(String) - Method in class com.cloudant.client.cache.DatabaseCache
Checks if the cache contains the specified document.

D

DatabaseCache - Class in com.cloudant.client.cache
A Database implementation with a cache.
DatabaseCache(Database, Cache<String, Object>) - Constructor for class com.cloudant.client.cache.DatabaseCache
Constructor which is designed to work with a variety of different caches.
DatabaseCacheWithLifetimes - Class in com.cloudant.client.cache
A Database implementation with a cache that supports expiration times.
DatabaseCacheWithLifetimes(Database, CacheWithLifetimes<String, Object>, long, TimeUnit) - Constructor for class com.cloudant.client.cache.DatabaseCacheWithLifetimes
Constructor which is designed to work with a variety of different caches.
decompress(byte[]) - Static method in class com.cloudant.client.cache.Util
Decompress a compressed object
delete(K) - Method in interface com.cloudant.client.cache.Cache
Delete a key-value pair from the cache.
delete(K) - Method in class com.cloudant.client.cache.LRUCache
Delete a key-value pair from the cache.
delete(K) - Method in class com.cloudant.client.cache.redis.RedisCache
Delete a key-value pair from the cache.
deleteAll(List<K>) - Method in interface com.cloudant.client.cache.Cache
Delete one or more key-value pairs from the cache.
deleteAll(List<K>) - Method in class com.cloudant.client.cache.LRUCache
Delete one or more key-value pairs from the cache.
deleteAll(List<K>) - Method in class com.cloudant.client.cache.redis.RedisCache
Delete one or more key-value pairs from the cache.
describeException(Exception, String) - Static method in class com.cloudant.client.cache.Util
Output information about an exception
deserializeFromByteArray(byte[]) - Static method in class com.cloudant.client.cache.Serializer
Deserialize a single object from a byte array.

F

find(Class<T>, String) - Method in class com.cloudant.client.cache.DatabaseCache
Preferentially use the cache for the find operation.
find(Class<T>, String, Params) - Method in class com.cloudant.client.cache.DatabaseCache
Preferentially use the cache for the find operation.
findAny(Class<T>, String) - Method in class com.cloudant.client.cache.DatabaseCache
Preferentially use the cache for the find operation.
flushAll() - Method in class com.cloudant.client.cache.redis.RedisCache
Delete all key-value pairs from all databases

G

get(K) - Method in interface com.cloudant.client.cache.Cache
Look up a value in the cache.
get(K) - Method in class com.cloudant.client.cache.LRUCache
Look up a value in the cache.
get(K) - Method in class com.cloudant.client.cache.redis.RedisCache
Look up a value in the cache.
getAll(List<K>) - Method in interface com.cloudant.client.cache.Cache
Look up one or more values in the cache.
getAll(List<K>) - Method in class com.cloudant.client.cache.LRUCache
Look up one or more values in the cache.
getAll(List<K>) - Method in class com.cloudant.client.cache.redis.RedisCache
Look up one or more values in the cache.
getCache() - Method in class com.cloudant.client.cache.DatabaseCache
Returns the cache so that the application can manage it using the Cache API methods.
getCache() - Method in class com.cloudant.client.cache.DatabaseCacheWithLifetimes
 
getCacheEntry(K) - Method in interface com.cloudant.client.cache.CacheWithLifetimes
Look up a CacheEntry in the cache.
getCacheEntry(K) - Method in class com.cloudant.client.cache.redis.RedisCache
Look up a CacheEntry in the cache.
getExpirationTime() - Method in class com.cloudant.client.cache.CacheEntry
 
getStatistics() - Method in interface com.cloudant.client.cache.Cache
Get cache statistics.
getStatistics() - Method in class com.cloudant.client.cache.LRUCache
This cache implementation does not provide any statistics.
getStatistics() - Method in class com.cloudant.client.cache.redis.RedisCache
Get cache statistics.
getStats() - Method in class com.cloudant.client.cache.redis.RedisCacheStats
getStats() - Method in interface com.cloudant.client.cache.Stats
 
getTime() - Static method in class com.cloudant.client.cache.Util
Return the current time
getValue() - Method in class com.cloudant.client.cache.CacheEntry
 

L

LRUCache<K,V> - Class in com.cloudant.client.cache
A Least Recently Used (LRU) cache.
LRUCache(int) - Constructor for class com.cloudant.client.cache.LRUCache
Create a new LRUCache with the specified capacity.

P

post(Object) - Method in class com.cloudant.client.cache.DatabaseCache
Creates a document in the database using a HTTP POST request.
post(Object, int) - Method in class com.cloudant.client.cache.DatabaseCache
Creates a document in the database similarly to Database.post(Object) but using a specific write quorum.
print() - Method in class com.cloudant.client.cache.CacheEntry
 
printCacheEntry(K) - Method in class com.cloudant.client.cache.redis.RedisCache
Return string representing a cache entry corresponding to a key (or indicate if the key is not in the cache).
put(K, V) - Method in interface com.cloudant.client.cache.Cache
Cache a key-value pair.
put(K, V, long) - Method in interface com.cloudant.client.cache.CacheWithLifetimes
Cache a key-value pair.
put(K, V) - Method in class com.cloudant.client.cache.LRUCache
Cache a key-value pair.
put(K, V) - Method in class com.cloudant.client.cache.redis.RedisCache
Cache a key-value pair.
put(K, V, long) - Method in class com.cloudant.client.cache.redis.RedisCache
Cache a key-value pair.
putAll(Map<K, V>) - Method in interface com.cloudant.client.cache.Cache
Cache one or more key-value pairs.
putAll(Map<K, V>, long) - Method in interface com.cloudant.client.cache.CacheWithLifetimes
Cache one or more key-value pairs.
putAll(Map<K, V>) - Method in class com.cloudant.client.cache.LRUCache
Cache one or more key-value pairs.
putAll(Map<K, V>) - Method in class com.cloudant.client.cache.redis.RedisCache
Cache one or more key-value pairs.
putAll(Map<K, V>, long) - Method in class com.cloudant.client.cache.redis.RedisCache
Cache one or more key-value pairs.

R

RedisCache<K,V> - Class in com.cloudant.client.cache.redis
 
RedisCache(String, long) - Constructor for class com.cloudant.client.cache.redis.RedisCache
Create a cache with the specified lifetime connected to Redis at the specified host.
RedisCache(String, int, long) - Constructor for class com.cloudant.client.cache.redis.RedisCache
Create a cache with the specified lifetime connected to Redis at the specified host & port.
RedisCache(String, int, int, long) - Constructor for class com.cloudant.client.cache.redis.RedisCache
Create a cache with the specified lifetime connected to Redis at the specified host & port.
RedisCache(Jedis, long) - Constructor for class com.cloudant.client.cache.redis.RedisCache
Constructor in which already-created Jedis instance is passed in to be used as underlying cache.
RedisCacheStats - Class in com.cloudant.client.cache.redis
 
remove(Object) - Method in class com.cloudant.client.cache.DatabaseCache
Removes a document from the database.

S

save(Object) - Method in class com.cloudant.client.cache.DatabaseCache
Saves a document in the database.
save(Object, int) - Method in class com.cloudant.client.cache.DatabaseCache
Saves a document in the database similarly to Database.save(Object) but using a specific write quorum.
Serializer - Class in com.cloudant.client.cache
 
Serializer() - Constructor for class com.cloudant.client.cache.Serializer
 
serializeToByteArray(T) - Static method in class com.cloudant.client.cache.Serializer
Serialize a single object to a byte array.
size() - Method in interface com.cloudant.client.cache.Cache
 
size() - Method in class com.cloudant.client.cache.LRUCache
size() - Method in class com.cloudant.client.cache.redis.RedisCache
Stats<T> - Interface in com.cloudant.client.cache
Interface for getting statistics from a cache implementation.

T

toString() - Method in class com.cloudant.client.cache.CacheEntry
 
toString() - Method in class com.cloudant.client.cache.redis.RedisCache
Output contents of current database to a string.

U

update(Object) - Method in class com.cloudant.client.cache.DatabaseCache
Updates an object in the database, the object must have the correct _id and _rev values.
update(Object, int) - Method in class com.cloudant.client.cache.DatabaseCache
Updates an object in the database similarly to Database.update(Object), but specifying the write quorum.
Util - Class in com.cloudant.client.cache
 
Util() - Constructor for class com.cloudant.client.cache.Util
 
B C D F G L P R S T U 
Skip navigation links