Module type S.Future
The signature for asynchronous backends.
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 -> key iogenerate ?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 -> unit ioclear t keyremoveskeyfrom the backendt. The backend may choose to persist the session value beyond this call. If it does any subsequent operations involvingkeybehave as if it was not there.