Class AbstractCache<K,V>
java.lang.Object
org.tavall.couriers.api.cache.abstracts.AbstractCache<K,V>
- Type Parameters:
K- The key typeV- The value type
- All Implemented Interfaces:
ICacheKey<K>, ICacheValue<V>
- Direct Known Subclasses:
DeliveryStateCache, QRCodeCache, QRShippingLabelCache, RouteCacheService, ScanCacheService, ScanErrorCacheService, TrackingNumberCache, UserAccountCache
Abstract base class for cache implementations providing common caching functionality
-
Method Summary
Modifier and TypeMethodDescriptionICacheKey<?> ICacheKey<?> ICacheKey<?> createKey(K rawKey, CacheType type, CacheDomain domain) ICacheKey<?> createKey(K rawKey, CacheType type, CacheDomain domain, CacheSource source) ICacheKey<?> createKey(K rawKey, CacheType type, CacheDomain domain, CacheSource source, CacheVersion version) ICacheKey<?> createKey(K rawKey, CacheType type, CacheDomain domain, CacheVersion version) ICacheKey<?> createKey(K rawKey, CacheType type, CacheSource source) ICacheKey<?> createKey(K rawKey, CacheType type, CacheSource source, CacheVersion version) ICacheKey<?> createKey(K rawKey, CacheType type, CacheVersion version) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ICacheKey
equals, getRawCacheKey, hashCode, toStringMethods inherited from interface ICacheValue
getValue
-
Method Details
-
getCacheType
- Specified by:
getCacheTypein interfaceICacheKey<K>
-
getCacheDomain
- Specified by:
getCacheDomainin interfaceICacheKey<K>
-
getSource
-
getVersion
- Specified by:
getVersionin interfaceICacheKey<K>
-
createKey
-
createKey
-
createKey
-
createKey
-
createKey
-
createKey
-
createKey
-
createKey
-
createKey
public ICacheKey<?> createKey(K rawKey, CacheType type, CacheDomain domain, CacheSource source, CacheVersion version)
-