Versions in this module Expand all Collapse all v0 v0.11.1 Mar 16, 2021 v0.10.1 Mar 16, 2021 Changes in this version + const IdleTimeout + const MaxIdle + func GetDealsAndMatchResult(ctx sdk.Context, orderKeeper types.OrderKeeper) ([]*backend.Deal, []*backend.MatchResult, error) + func GetMatchResults(ctx sdk.Context, orderKeeper types.OrderKeeper) []*backend.MatchResult + func GetNewOrders(ctx sdk.Context, orderKeeper types.OrderKeeper) []*backend.Order + func NewPool(redisURL string, redisPass string, logger log.Logger) (*redis.Pool, error) + func ParseRedisURL(redisURL, requirePass string) (string, string, error) + type Cache struct + func NewCache() *Cache + func (c *Cache) AddClaimInfo(claimInfo *backend.ClaimInfo) + func (c *Cache) AddNewSwapTokenPair(swapTokenPair *ammswap.SwapTokenPair) + func (c *Cache) AddNewTokenPair(tokenPair *types.TokenPair) + func (c *Cache) AddSwapInfo(swapInfo *backend.SwapInfo) + func (c *Cache) AddTransaction(transaction *backend.Transaction) + func (c *Cache) AddUpdatedAccount(acc auth.Account) + func (c *Cache) GetClaimInfos() []*backend.ClaimInfo + func (c *Cache) GetNewSwapTokenPairs() []*ammswap.SwapTokenPair + func (c *Cache) GetNewTokenPairs() []*types.TokenPair + func (c *Cache) GetSwapInfos() []*backend.SwapInfo + func (c *Cache) GetTokenPairChanged() bool + func (c *Cache) GetTransactions() []*backend.Transaction + func (c *Cache) GetUpdatedAccAddress() (accs []sdk.AccAddress) + func (c *Cache) Reset() + func (c *Cache) SetTokenPairChanged(changed bool)