mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
26 lines
838 B
Go
26 lines
838 B
Go
|
|
// Copyright (c) 2018-present Mattermost, Inc. All Rights Reserved.
|
||
|
|
// See License.txt for license information.
|
||
|
|
|
||
|
|
package store
|
||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
|
||
|
|
"github.com/mattermost/mattermost-server/model"
|
||
|
|
)
|
||
|
|
|
||
|
|
func (s *RedisSupplier) SchemeSave(ctx context.Context, scheme *model.Scheme, hints ...LayeredStoreHint) *LayeredStoreSupplierResult {
|
||
|
|
// TODO: Redis caching.
|
||
|
|
return s.Next().SchemeSave(ctx, scheme, hints...)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (s *RedisSupplier) SchemeGet(ctx context.Context, schemeId string, hints ...LayeredStoreHint) *LayeredStoreSupplierResult {
|
||
|
|
// TODO: Redis caching.
|
||
|
|
return s.Next().SchemeGet(ctx, schemeId, hints...)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (s *RedisSupplier) SchemeDelete(ctx context.Context, schemeId string, hints ...LayeredStoreHint) *LayeredStoreSupplierResult {
|
||
|
|
// TODO: Redis caching.
|
||
|
|
return s.Next().SchemeDelete(ctx, schemeId, hints...)
|
||
|
|
}
|