Package io.higson.runtime.function.log
Class FunctionLogLevelCache
java.lang.Object
io.higson.runtime.function.log.FunctionLogLevelCache
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets cached value from function with provided [code].voidput(String code, FunctionLogLevel logLevel) The provided [logLevel] is cached for function with provided [code].toString()
-
Field Details
-
DEFAULT_TTL
-
-
Constructor Details
-
FunctionLogLevelCache
-
FunctionLogLevelCache
-
FunctionLogLevelCache
public FunctionLogLevelCache()
-
-
Method Details
-
get
Gets cached value from function with provided [code]. Returns null if more than [ttl] milliseconds have passed since cache entry creation. -
put
The provided [logLevel] is cached for function with provided [code]. The cache entry holds the current timestamp taken from [clock]. After [ttl] milliseconds this entry will be invalidated. -
toString
-