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.BucketPropertyPath
Creates a top-levelBucket.BucketPropertyPath
givenBucket
.static Bucket.BucketPropertyPath
byte[]
Retrieve a value atkey
considering top-level/nesting.void
Write avalue
atkey
considering top-level/nesting.
-
Method Details
-
from
Creates a top-levelBucket.BucketPropertyPath
givenBucket
.- Parameters:
bucket
- the bucket, must not be null.- Returns:
Bucket.BucketPropertyPath
within the givenBucket
.
-
from
Creates aBucket.BucketPropertyPath
givenBucket
andprefix
. The resulting path is top-level ifprefix
is empty or nested, ifprefix
is not empty.- Parameters:
bucket
- the bucket, must not be null.prefix
- the prefix. Property path is top-level ifprefix
is null or empty.- Returns:
Bucket.BucketPropertyPath
within the givenBucket
usingprefix
.
-
get
Retrieve a value atkey
considering top-level/nesting.- Parameters:
key
- must not be null or empty.- Returns:
- the resulting value, may be null.
-
put
Write avalue
atkey
considering top-level/nesting.- Parameters:
key
- must not be null or empty.value
- the value.
-
getBucket
-
getPrefix
-