public class MemcachedDatasource<T> extends EphemeralKeyValueDatasource<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
MemcachedDatasource.Configuration |
| Modifier and Type | Field and Description |
|---|---|
static Duration |
DEFAULT_TTL |
logger| Constructor and Description |
|---|
MemcachedDatasource(EntityModel<T> model,
net.spy.memcached.MemcachedClient memcached,
String keyspace) |
| Modifier and Type | Method and Description |
|---|---|
static MemcachedDatasource.Configuration |
configure() |
void |
create(Collection<T> entities) |
void |
create(T entity) |
long |
delete(Collection<?> keys) |
boolean |
delete(Object key) |
<K> Map<K,T> |
get(Collection<K> keys) |
Optional<T> |
get(Object key) |
protected Integer |
getNextAutoIncrementedPK() |
net.spy.memcached.MemcachedClient |
raw() |
void |
set(Collection<T> entities,
Duration ttl) |
void |
set(T entity,
Duration ttl) |
count, delete, first, generateKeyIfDefault, list, patch, prefix, prefixedKeyOf, update, updatepublic static final Duration DEFAULT_TTL
public MemcachedDatasource(EntityModel<T> model, net.spy.memcached.MemcachedClient memcached, String keyspace)
public net.spy.memcached.MemcachedClient raw()
raw in class Datasource<T>public <K> Map<K,T> get(Collection<K> keys)
get in class Datasource<T>public void create(T entity)
create in class Datasource<T>public void set(T entity, Duration ttl)
set in class EphemeralKeyValueDatasource<T>protected Integer getNextAutoIncrementedPK()
getNextAutoIncrementedPK in class KeyValueDatasource<T>public void create(Collection<T> entities)
create in class Datasource<T>public void set(Collection<T> entities, Duration ttl)
set in class EphemeralKeyValueDatasource<T>public boolean delete(Object key)
delete in class Datasource<T>public long delete(Collection<?> keys)
delete in class Datasource<T>public static MemcachedDatasource.Configuration configure()
Copyright © 2021. All rights reserved.