public IActionResult Set_Redis(SetRedisRequest request) { _sRedis.Set(request.key, request.value, null, (int)enumDatabase.redisDatabase); return(Ok(Message.addedRedisDatabase)); }
public void Set(string key, byte[] value) { _redis.Set(key, System.Text.Encoding.UTF8.GetString(value), TimeSpan.FromSeconds(60)); }
public void set_value() { redis.Set("foo", "bar"); }