Creates a DateFactory that returns a Date the specified number of days in the future.
The number of days in the future the Date should be.
A function that returns a Date.
Creates a DateFactory that returns a Date the specified number of hours in the future.
The number of hours in the future the Date should be.
A function that returns a Date.
Creates a DateFactory that returns a Date the specified number of minutes in the future.
The number of minutes in the future the Date should be.
A function that returns a Date.
Creates a DateFactory that returns a Date the specified number of weeks in the future.
The number of weeks in the future the Date should be.
A function that returns a Date.
Wraps a Store instance so values are encrypted and decrypted transparently when get and set. For increased security, the key used to store a value will also be used to salt the given private key, ensuring each object is stored with a unique key.
Underlying Store instance whose values will
be encrypted during set
calls and decrypted during get
calls.
Indicates which encryption method and encryption key to use.
A Store instance that will encrypt and decrypt values in the underlying store transparently.
Wraps a Store so values expire after a specified Date. Any attempts to
retrieve a value after it has expired will return undefined
.
The store to wrap.
Function to create expiration Dates.
A Store that returns undefined
if a value has expired.
Wraps a Store so any keys are transparently modified before access. This can be useful when storing data on a machine that will have more than 1 user, to ensure different users don't access each other's stored information.
The store whose keys should be modified before access.
A string to prepend to any keys or a function that will modify a key.
Contains utility methods for working with Stores.