Module type S.Now
The signature for synchronous backends.
This signature should be used for backends that don't expose an asynchronous interface, such as an in-memory backend or a backend that only has a blocking interface.
val default_period : t -> perioddefault_period treturns default period after which session keys will expire. Depending on the backend, this value may vary over time.
val generate : ?expiry:period -> ?value:value -> t -> keygenerate ?expiry ?value twill allocate a new session in the backendtand return its associatedkey. The session will expireexpiryseconds from now, defaulting todefault_period tif one is not explicitly specified.The key should be unique, though it may not be in order to allow implementations that use randomness or hashing to conform to this interface.
val clear : t -> key -> unitclear t keyremoveskeyfrom the backendt. The backend may choose to persist the session value beyond this call, but any subsequent calls operations involvingkeyshould behave as ifkeyis not present in the backend.