On 2014-02-23 23:09, NoBodyKnows wrote:> This line auto test = redis.hget!(char[],char)(auth.getAuthInfo(req).email, "LastDay");
../../../../.dub/packages/vibe-d-master/source/vibe/db/redis/redis.d(576): Error: static assert "Unsupported Redis reply type: char[]"
There's a few issues I see:
You're calling hget with template parameters:
`hget!(char[], char)
, although the template definition
hget(T : E[], E)
uses argument deduction (http://dlang.org/template.html) to define the value for E, so you could just as well use
hget!(char[])
`You are requesting the char[] type here, you could just as well ask a string because it's an alias for immutable(char)[], which is optimal as a return type.
The error at line 576 is with
`} else static if (is(T == string)) {
, which should be
} else static if (isSomeString!T) {
`, which forces you to use hget!string instead of hget!(char[]). heh ;)