protected virtual long Get(string key) { Slice outValue = new Slice(); outValue = "0"; if (!store.TryGet(ReadOptions.Default, key, out outValue)) { // Key does not exist, initialise to 0 store.Put(WriteOptions.Default, key, outValue); } counter = Convert.ToInt64(outValue.ToString()); return counter; }