2881099 / FreeRedis

🦄 FreeRedis is .NET40+ redis client. supports cluster, sentinel, master-slave, pub-sub, lua, pipeline, transaction, streams, client-side-caching, and pooling.
MIT License
924 stars 165 forks source link

when UseClientSideCaching console app doesn't stop after Main method finished #42

Closed tky753 closed 3 years ago

tky753 commented 3 years ago
xxx version
TargetFramework net5.0
redis 6.0.10
FreeRedis 0.3.0
static void Main(string[] args)
{
    var csb = new ConnectionStringBuilder
    {
        Host = "192.168.1.4",
        Password = "159357"
    };
    var rc = new RedisClient(csb);
    rc.UseClientSideCaching(new ClientSideCachingOptions());
}

console app doesn't stop until press ctrl + C or explicitly invoke rc.Dispose();

2881099 commented 3 years ago

yes, please call .Dispose()