public void TestMethod1() { MemcachedManager m = new MemcachedManager(); var c = m.Get <string>("api_keyTest"); if (string.IsNullOrEmpty(c)) { m.Set("api_keyTest", "test"); } c = m.Get <string>("api_keyTest"); }
public void PassesMamcachedManager_Set_Success() { _client.Set("name", "joe", 1000); _client.HasKey("name").TestBeTrue(); _client.Get <string>("name").TestEqual("joe"); _client.Remove("name"); _client.HasKey("name").TestBeFalse(); }