core_y library

Classes

CacheManager<V>
A generic cache manager that supports time-based expiration and group-based management.
Failure<S, E extends AppException>
A class that manages the expiration of cache entries or groups.
Result<S, E extends AppException>
Success<S, E extends AppException>

Enums

SerializationExceptionCode
Enum representing different types of serialization errors.

Typedefs

AsyncResult<S, E extends AppException> = Future<Result<S, E>>
Cache<V> = Map<String, _CacheValue<V>>
GroupId = String
Key = String
OnExpire = void Function()
A function type that represents an action to be taken when a cache entry expires.

Exceptions / Errors

AppException
SerializationException
An exception that is thrown when an error occurs during serialization or deserialization.