ids.generate ( void )

ids.invalidate ( String key )

Invalidates the given id key, removing any data stored with it and recycling it.

ids.store ( mixed value )

Generates a new key and stores a value under that key.

ids.fetch ( String key )

Looks up a value stored under the given key.

ids.fetchAndInvalidate ( String key )

The equivilent of calling fetch and then invalidate. Returns the stored value.

ids.configure ( Object conf )

Changes configuration values.

// Call to configure shown with the default valuesids.configure({
length:6, // The length of the id strings to generate
algorithm:'sha1', // The hashing algoritm to use in generating keys
salt:Math.random// A salt value or function
});