github.com/vnforks/kid@v5.11.1+incompatible/store/redis_supplier_schemes.go (about)

     1  // Copyright (c) 2018-present Mattermost, Inc. All Rights Reserved.
     2  // See License.txt for license information.
     3  
     4  package store
     5  
     6  import (
     7  	"context"
     8  
     9  	"github.com/mattermost/mattermost-server/model"
    10  )
    11  
    12  func (s *RedisSupplier) SchemeSave(ctx context.Context, scheme *model.Scheme, hints ...LayeredStoreHint) *LayeredStoreSupplierResult {
    13  	// TODO: Redis caching.
    14  	return s.Next().SchemeSave(ctx, scheme, hints...)
    15  }
    16  
    17  func (s *RedisSupplier) SchemeGet(ctx context.Context, schemeId string, hints ...LayeredStoreHint) *LayeredStoreSupplierResult {
    18  	// TODO: Redis caching.
    19  	return s.Next().SchemeGet(ctx, schemeId, hints...)
    20  }
    21  
    22  func (s *RedisSupplier) SchemeGetByName(ctx context.Context, schemeName string, hints ...LayeredStoreHint) *LayeredStoreSupplierResult {
    23  	// TODO: Redis caching.
    24  	return s.Next().SchemeGetByName(ctx, schemeName, hints...)
    25  }
    26  
    27  func (s *RedisSupplier) SchemeDelete(ctx context.Context, schemeId string, hints ...LayeredStoreHint) *LayeredStoreSupplierResult {
    28  	// TODO: Redis caching.
    29  	return s.Next().SchemeDelete(ctx, schemeId, hints...)
    30  }
    31  
    32  func (s *RedisSupplier) SchemeGetAllPage(ctx context.Context, scope string, offset int, limit int, hints ...LayeredStoreHint) *LayeredStoreSupplierResult {
    33  	// TODO: Redis caching.
    34  	return s.Next().SchemeGetAllPage(ctx, scope, offset, limit, hints...)
    35  }
    36  
    37  func (s *RedisSupplier) SchemePermanentDeleteAll(ctx context.Context, hints ...LayeredStoreHint) *LayeredStoreSupplierResult {
    38  	// TODO: Redis caching.
    39  	return s.Next().SchemePermanentDeleteAll(ctx, hints...)
    40  }