View Source CsrfPlus.Store.MemoryDb (CsrfPlus v0.1.2)

A Store to keep the CsrfPlus.UserAccess data in memory. The CsrfPlus.UserAccess is where the token and its expiration flag is set.

Summary

Functions

Retrieve all the accesses in the memory

Returns a specification to start this module under a supervisor.

Deletes an access from the memory by its access_id

Actually, check the tokens age and flag all the ones that had expired.

Retrieve an access from the memory by its access_id

Put an access in the memory

Functions

Retrieve all the accesses in the memory

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

delete_access(access_id)

View Source

Deletes an access from the memory by its access_id

Link to this function

delete_dead_accesses(max_age)

View Source

Actually, check the tokens age and flag all the ones that had expired.

Retrieve an access from the memory by its access_id

Put an access in the memory

Starts the CsrfPlus.Store.MemoryDb.