Package ru.tinkoff.kora.cache
Interface CacheKey
- All Known Subinterfaces:
CacheKey.Key2<K1,,K2> CacheKey.Key3<K1,,K2, K3> CacheKey.Key4<K1,,K2, K3, K4> CacheKey.Key5<K1,,K2, K3, K4, K5> CacheKey.Key6<K1,,K2, K3, K4, K5, K6> CacheKey.Key7<K1,,K2, K3, K4, K5, K6, K7> CacheKey.Key8<K1,,K2, K3, K4, K5, K6, K7, K8> CacheKey.Key9<K1,K2, K3, K4, K5, K6, K7, K8, K9>
public interface CacheKey
Represent CacheKey interface that is used by the implementation that represents method arguments as key for Cache
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptionbooleanisEmpty()joined()static <K1,K2> CacheKey.Key2<K1, K2> of(K1 key1, K2 key2) static <K1,K2, K3> CacheKey.Key3<K1, K2, K3> of(K1 key1, K2 key2, K3 key3) static <K1,K2, K3, K4>
CacheKey.Key4<K1,K2, K3, K4> of(K1 key1, K2 key2, K3 key3, K4 key4) static <K1,K2, K3, K4, K5>
CacheKey.Key5<K1,K2, K3, K4, K5> of(K1 key1, K2 key2, K3 key3, K4 key4, K5 key5) static <K1,K2, K3, K4, K5, K6>
CacheKey.Key6<K1,K2, K3, K4, K5, K6> of(K1 key1, K2 key2, K3 key3, K4 key4, K5 key5, K6 key6) static <K1,K2, K3, K4, K5, K6, K7>
CacheKey.Key7<K1,K2, K3, K4, K5, K6, K7> of(K1 key1, K2 key2, K3 key3, K4 key4, K5 key5, K6 key6, K7 key7) static <K1,K2, K3, K4, K5, K6, K7, K8>
CacheKey.Key8<K1,K2, K3, K4, K5, K6, K7, K8> of(K1 key1, K2 key2, K3 key3, K4 key4, K5 key5, K6 key6, K7 key7, K8 key8) static <K1,K2, K3, K4, K5, K6, K7, K8, K9>
CacheKey.Key9<K1,K2, K3, K4, K5, K6, K7, K8, K9> of(K1 key1, K2 key2, K3 key3, K4 key4, K5 key5, K6 key6, K7 key7, K8 key8, K9 key9) values()
-
Method Details
-
isEmpty
boolean isEmpty()- Returns:
Boolean.TRUEif all sub keys are nullable
-
joined
-
values
- Returns:
- cache key values arguments that are subjected for Cache key
-
of
-
of
-
of
-
of
@Nonnull static <K1,K2, CacheKey.Key5<K1,K3, K4, K5> K2, ofK3, K4, K5> (K1 key1, K2 key2, K3 key3, K4 key4, K5 key5) -
of
@Nonnull static <K1,K2, CacheKey.Key6<K1,K3, K4, K5, K6> K2, ofK3, K4, K5, K6> (K1 key1, K2 key2, K3 key3, K4 key4, K5 key5, K6 key6) -
of
@Nonnull static <K1,K2, CacheKey.Key7<K1,K3, K4, K5, K6, K7> K2, ofK3, K4, K5, K6, K7> (K1 key1, K2 key2, K3 key3, K4 key4, K5 key5, K6 key6, K7 key7) -
of
@Nonnull static <K1,K2, CacheKey.Key8<K1,K3, K4, K5, K6, K7, K8> K2, ofK3, K4, K5, K6, K7, K8> (K1 key1, K2 key2, K3 key3, K4 key4, K5 key5, K6 key6, K7 key7, K8 key8) -
of
@Nonnull static <K1,K2, CacheKey.Key9<K1,K3, K4, K5, K6, K7, K8, K9> K2, ofK3, K4, K5, K6, K7, K8, K9> (K1 key1, K2 key2, K3 key3, K4 key4, K5 key5, K6 key6, K7 key7, K8 key8, K9 key9)
-