A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/StackExchange/StackExchange.Redis/issues/1103 below:

StringSet last digit of uint64 value is wrong · Issue #1103 · StackExchange/StackExchange.Redis · GitHub

I have an issue where StringSet messes up the last digit of my uint64 value.
I want to store 142205255210238005 but redis-cli > get key1 returns me 142205255210238000.

See here an example :

using System;
using StackExchange.Redis;

namespace redisUint64
{
    class Program
    {
        static void Main(string[] args)
        {
            ulong value = 142205255210238005;
            var conn = ConnectionMultiplexer.Connect("127.0.0.1");
            var db = conn.GetDatabase();
            db.StringSet("key1", value);
            var retVal = db.StringGet("key1");
            Console.WriteLine(retVal);
        }
    }
}

Stackexchange.Redis version 2.0.571
Redis server version 5.0.4
.Net Core 2.2
Arch linux 64bit


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4