spring-framework / org.springframework.cache.support / SimpleValueWrapper

SimpleValueWrapper

open class SimpleValueWrapper : ValueWrapper

Straightforward implementation of org.springframework.cache.Cache.ValueWrapper, simply holding the value as given at construction and returning it from #get().

Author
Costin Leau

Since
3.1

Constructors

<init>

SimpleValueWrapper(value: Any)

Create a new SimpleValueWrapper instance for exposing the given value.

Functions

get

open fun get(): Any

Simply returns the value as given at construction time.