Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AeroStore ¶
type AeroStore struct { Codecs []securecookie.Codec Options *sessions.Options // default configuration // contains filtered or unexported fields }
AeroStore stores sessions in a Aerospike backend.
Example ¶
// AeroStore store, err := NewAeroStore("test", "sessions", "127.0.0.1", 3000, []byte("something-very-secret")) if err != nil { panic(err) } defer store.Close()
Output:
func NewAeroStore ¶
NewAeroStore returns a new AeroStore. ns: Aerospike namespace (similar to database) set: Aerospike set (similar to table)
func NewAeroStoreWithClient ¶
func NewAeroStoreWithClient(ns, set string, client *as.Client, keyPairs ...[]byte) (*AeroStore, error)
NewAeroStoreWithClient instantiates a AeroStore with a *as.Client passed in.
func (*AeroStore) Close ¶
func (s *AeroStore) Close()
Close closes the underlying the Aerospike client
func (*AeroStore) Get ¶
Get returns a session for the given name after adding it to the registry.
See CookieStore.Get().
Click to show internal directories.
Click to hide internal directories.