create redis session go file
This commit is contained in:
@@ -0,0 +1,31 @@
|
|||||||
|
package session
|
||||||
|
|
||||||
|
import (
|
||||||
|
"astraltech.xyz/accountmanager/src/logging"
|
||||||
|
)
|
||||||
|
|
||||||
|
type RedisStore struct {
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewRedisStore() *RedisStore {
|
||||||
|
logging.Debug("Creating new in redis session store")
|
||||||
|
store := &RedisStore{}
|
||||||
|
return store
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *RedisStore) Create(sessionID string, session *SessionData) (err error) {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
func (m *RedisStore) Get(sessionID string) (*SessionData, error) {
|
||||||
|
return nil, nil
|
||||||
|
}
|
||||||
|
func (m *RedisStore) Update(sessionID string, session *SessionData) error {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *RedisStore) cleanup() {
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *RedisStore) Delete(sessionID string) error {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user