feat: handle contract creation (#43)

* feat: add contract creation handler

* fix: process contract creations

* fix: redis keys name
This commit is contained in:
2024-10-07 15:12:58 +03:00
committed by GitHub
parent 4b2ad3daf9
commit 05d142664d
6 changed files with 124 additions and 15 deletions

View File

@@ -40,8 +40,8 @@ func (c *redisCache) Remove(ctx context.Context, key string) error {
return c.client.Do(ctx, cmd).Error()
}
func (c *redisCache) Exists(ctx context.Context, key ...string) (bool, error) {
cmd := c.client.B().Exists().Key(key...).Build()
func (c *redisCache) Exists(ctx context.Context, keys ...string) (bool, error) {
cmd := c.client.B().Exists().Key(keys...).Build()
res, err := c.client.Do(ctx, cmd).AsBool()
if err != nil {
return false, err