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/2418 below:

type mismatch · Issue #2418 · StackExchange/StackExchange.Redis · GitHub

Hello!
I'm experiencing an issue with RedisValue underlying type.
So, I'm flushing some data like the following:

RedisValue someInt = 12;
db.HashSetAsync(key, new[] {
    new HashEntry("some_int", someInt)
    // ...
});

The property IsInteger() prints true for someInt.
The problem occurs when attempting to read back the set:

var entry = await db.HashGetAllAsync(key);
var someInt = entry.FirstOrDefault(x => x.Name == "some_int").Value;

Here IsInteger() returns false, and I cannot sort out why.
Furthermore any cast to Int32 just fails (e.g. var x = (Int32)someInt;).
Any hint?


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