Documentation
¶
Overview ¶
Package memory provides a store.Store that keeps the sessions in memory.
Index ¶
- type Store
- func (s *Store) Create(_ context.Context, id string, r store.Record) error
- func (s *Store) Delete(_ context.Context, id string) error
- func (s *Store) DeleteBy(_ context.Context, partition, subject, sid string) (map[string]store.Record, error)
- func (s *Store) Load(_ context.Context, id string) (store.Record, error)
- func (s *Store) Update(_ context.Context, id string, r store.Record) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a store.Store that keeps the sessions in memory. The sessions are neither shared nor persisted, so it is only suited to a single instance.
func (*Store) Create ¶
Create implements store.Store.
func (*Store) Delete ¶
Delete implements store.Store.
func (*Store) DeleteBy ¶
func (s *Store) DeleteBy(_ context.Context, partition, subject, sid string) (map[string]store.Record, error)
DeleteBy implements store.Store.
func (*Store) Load ¶
Load implements store.Store.
Click to show internal directories.
Click to hide internal directories.