Serverless scaling and work to authorizer

This commit is contained in:
2020-05-21 17:32:27 -04:00
parent 92d0fa6476
commit 835d0f2833
10 changed files with 162 additions and 50 deletions

View File

@ -4,7 +4,7 @@ using StackExchange.Redis;
class Redis
{
private ConnectionMultiplexer muxer;
private IDatabase conn;
public IDatabase conn;
private string hostname;
private int port;
public Redis(string host = "127.0.0.1", int p = 6379)
@ -25,18 +25,6 @@ class Redis
Console.WriteLine("Connected to redis server!");
}
public void SetTest()
{
string test_val = "Potato";
conn.StringSet("test_val", test_val);
Console.WriteLine("Set value to: " + test_val);
}
public void GetTest()
{
Console.WriteLine("Value is: " + conn.StringGet("test_val"));
}
~Redis()
{
muxer.Close();