Constructor for initializing a new instance of the class. It creates a new MemCache instance and assigns it to the cookieEngine property.
Asynchronously deletes a key from the cookie engine.
The key or keys to be deleted.
A promise that resolves with the result of deleting the key.
Asynchronously retrieves the value associated with the given key from the cookie engine.
The key to look up in the cookie engine.
A promise that resolves with the value corresponding to the key.
Sets a default value for a given key in the cookies with the specified expiration period.
The key to set the default value for.
The default value to set.
A promise that resolves when the default value is set in the cookies.
Sets a long-lived value in the cookies with the specified key and value.
The key to set in the cookies.
The value to associate with the key.
A promise that resolves when the value is successfully set in the cookies.
Sets a cookie value with the given key and value, and an optional time-to-live (TTL) in seconds.
The key of the cookie.
The value to set for the cookie.
Optional
ttl: numberThe time-to-live for the cookie in seconds (optional).
A promise that resolves once the cookie is set.
Class representing a Memory object that interacts with a MemCache to store and retrieve cookie values.