I've to store redis key and value in redis chache. However the redisValue which I want to save is a Json string of 1976 characters length which has-> {,},[,],",-,: characters apart from numbers,alphabets. but while storing it says invalid argument.
So are any of above characters not allowed in redisValue or is there any character limit? Or what could be possible reasons for invalid argument exception for redisvalue ?
Thanks in advance.
Assuming
RedisValuehere is from StackExchange.Redis; it is treated as opaque data transferred using the binary-safe API; there are no disallowed characters. For limits: things always get hairy for extremely large strings, due to the 2GB limit of .NET objects (including string instances), but: you're nowhere near that. Internally, redis may have a 512MiB limit, which is on the UTF-8 encoded value.