Skip to content

Should implementations of IStorage be thread-safe? #182

Description

@TheCloudlessSky

I'm writing a Redis-based IStorage provider (using ServiceStack.Redis) and am running into some funky situations where the Redis client's state becomes inconsistent. I am creating the Redis client using a factory function that queries the IoC container. I was wondering if we need to ensure that the IStorage implementations need to be thread-safe? As soon as I added locks around the Redis client operations, the inconsistencies stopped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions