static <K,V> DistributedCaffeine.Builder<K,V> |
DistributedCaffeine.newBuilder(com.mongodb.client.MongoCollection<org.bson.Document> mongoCollection) |
Returns a new builder for configuring and constructing cache instances.
|
DistributedCaffeine.Builder<K,V> |
DistributedCaffeine.Builder.withCaffeineBuilder(com.github.benmanes.caffeine.cache.Caffeine<?,?> caffeineBuilder) |
Specifies the Caffeine builder to be used for internal caching.
|
DistributedCaffeine.Builder<K,V> |
DistributedCaffeine.Builder.withCustomKeySerializer(Serializer<K,?> keySerializer) |
Specifies a custom serializer to be used for serializing key objects.
|
DistributedCaffeine.Builder<K,V> |
DistributedCaffeine.Builder.withCustomValueSerializer(Serializer<V,?> valueSerializer) |
Specifies a custom serializer to be used for serializing value objects.
|
DistributedCaffeine.Builder<K,V> |
DistributedCaffeine.Builder.withDistributionMode(DistributionMode distributionMode) |
Specifies the mode used for distributed synchronization between cache instances.
|
DistributedCaffeine.Builder<K,V> |
DistributedCaffeine.Builder.withFurySerializer(Class<?>... registerClasses) |
Specifies that cache entries are serialized with byte array representation using Apache Fury when
stored in the MongoDB collection.
|
DistributedCaffeine.Builder<K,V> |
DistributedCaffeine.Builder.withJavaObjectSerializer() |
Specifies that cache entries are serialized with byte array representation using Java Object
Serialization when stored in the MongoDB collection.
|
DistributedCaffeine.Builder<K,V> |
DistributedCaffeine.Builder.withJsonSerializer(com.fasterxml.jackson.core.type.TypeReference<K> keyTypeReference,
com.fasterxml.jackson.core.type.TypeReference<V> valueTypeReference,
boolean storeAsBson) |
Specifies that cache entries are serialized with JSON representation (encoded as String or BSON) using
Jackson when stored in the MongoDB collection.
|
DistributedCaffeine.Builder<K,V> |
DistributedCaffeine.Builder.withJsonSerializer(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
com.fasterxml.jackson.core.type.TypeReference<K> keyTypeReference,
com.fasterxml.jackson.core.type.TypeReference<V> valueTypeReference,
boolean storeAsBson) |
Specifies that cache entries are serialized with JSON representation (encoded as String or BSON) using
Jackson when stored in the MongoDB collection.
|
DistributedCaffeine.Builder<K,V> |
DistributedCaffeine.Builder.withJsonSerializer(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
Class<? super K> keyClass,
Class<? super V> valueClass,
boolean storeAsBson) |
Specifies that cache entries are serialized with JSON representation (encoded as String or BSON) using
Jackson when stored in the MongoDB collection.
|
DistributedCaffeine.Builder<K,V> |
DistributedCaffeine.Builder.withJsonSerializer(Class<? super K> keyClass,
Class<? super V> valueClass,
boolean storeAsBson) |
Specifies that cache entries are serialized with JSON representation (encoded as String or BSON) using
Jackson when stored in the MongoDB collection.
|