# Path: smarkets/interfaces.py



from injector import inject, Module, provides, singleton
from smarkets.interfaces import Redis, RedisConfiguration
        import redis



class RedisModule(Module):

    def __init__(self, strict_client=True):
        self.client_class = redis.StrictRedis if strict_client else redis.Redis

    @singleton
    @provides(Redis)

# Path: smarkets/interfaces.py



# Path: smarkets/modules.py
from injector import inject, Module, provides, singleton
from smarkets.interfaces import Redis, RedisConfiguration
        import redis




class RedisModule(Module):

    def __init__(self, strict_client=True):
        self.client_class = redis.StrictRedis if strict_client else redis.Redis

    @singleton
    @provides(Redis)

    @inject(c=RedisConfiguration)