Class Bucket.BucketPropertyPath
java.lang.Object
org.springframework.data.redis.core.convert.Bucket.BucketPropertyPath
- Enclosing class:
- Bucket
Value object representing a path within a
Bucket. Paths can be either top-level (if the prefix is
null or empty) or nested with a given prefix.- Since:
- 2.1
- Author:
- Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionstatic Bucket.BucketPropertyPathCreates a top-levelBucket.BucketPropertyPathgivenBucket.static Bucket.BucketPropertyPathbyte[]Retrieve a value atkeyconsidering top-level/nesting.voidWrite avalueatkeyconsidering top-level/nesting.
-
Method Details
-
from
Creates a top-levelBucket.BucketPropertyPathgivenBucket.- Parameters:
bucket- the bucket, must not be null.- Returns:
Bucket.BucketPropertyPathwithin the givenBucket.
-
from
Creates aBucket.BucketPropertyPathgivenBucketandprefix. The resulting path is top-level ifprefixis empty or nested, ifprefixis not empty.- Parameters:
bucket- the bucket, must not be null.prefix- the prefix. Property path is top-level ifprefixis null or empty.- Returns:
Bucket.BucketPropertyPathwithin the givenBucketusingprefix.
-
get
Retrieve a value atkeyconsidering top-level/nesting.- Parameters:
key- must not be null or empty.- Returns:
- the resulting value, may be null.
-
put
Write avalueatkeyconsidering top-level/nesting.- Parameters:
key- must not be null or empty.value- the value.
-
getBucket
-
getPrefix
-