Search in sources :

Example 1 with EncoderCache

use of org.infinispan.cache.impl.EncoderCache in project infinispan by infinispan.

the class InternalCacheFactory method buildEncodingCache.

private AdvancedCache<K, V> buildEncodingCache(AdvancedCache<K, V> wrappedCache) {
    DataConversion keyDataConversion = newKeyDataConversion();
    DataConversion valueDataConversion = newValueDataConversion();
    return new EncoderCache<>(wrappedCache, null, null, keyDataConversion, valueDataConversion);
}
Also used : DataConversion.newKeyDataConversion(org.infinispan.encoding.DataConversion.newKeyDataConversion) DataConversion(org.infinispan.encoding.DataConversion) DataConversion.newValueDataConversion(org.infinispan.encoding.DataConversion.newValueDataConversion) EncoderCache(org.infinispan.cache.impl.EncoderCache)

Aggregations

EncoderCache (org.infinispan.cache.impl.EncoderCache)1 DataConversion (org.infinispan.encoding.DataConversion)1 DataConversion.newKeyDataConversion (org.infinispan.encoding.DataConversion.newKeyDataConversion)1 DataConversion.newValueDataConversion (org.infinispan.encoding.DataConversion.newValueDataConversion)1