Versions in this module Expand all Collapse all v0 v0.1.1 Jul 12, 2021 Changes in this version + type Config struct + type InMemory struct + func New(cfg Config) (*InMemory, error) + func (m *InMemory) AddRoom(r store.Room, ttl time.Duration) error + func (m *InMemory) AddSession(sessID, handle, roomID string, ttl time.Duration) error + func (m *InMemory) ClearSessions(roomID string) error + func (m *InMemory) ExtendRoomTTL(id string, ttl time.Duration) error + func (m *InMemory) Get(key string) ([]byte, error) + func (m *InMemory) GetRoom(id string) (store.Room, error) + func (m *InMemory) GetSession(sessID, roomID string) (store.Sess, error) + func (m *InMemory) RemoveRoom(id string) error + func (m *InMemory) RemoveSession(sessID, roomID string) error + func (m *InMemory) RoomExists(id string) (bool, error) + func (m *InMemory) Set(key string, data []byte) error