Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

59 lines (44 sloc) 2.515 kb
using System;
using Enyim.Caching.Memcached;
using System.Collections.Generic;
namespace Enyim.Caching
{
public interface IMemcachedClient : IDisposable
{
object Get(string key);
T Get<T>(string key);
IDictionary<string, object> Get(IEnumerable<string> keys);
bool TryGet(string key, out object value);
bool TryGetWithCas(string key, out CasResult<object> value);
CasResult<object> GetWithCas(string key);
CasResult<T> GetWithCas<T>(string key);
IDictionary<string, CasResult<object>> GetWithCas(IEnumerable<string> keys);
bool Append(string key, ArraySegment<byte> data);
CasResult<bool> Append(string key, ulong cas, ArraySegment<byte> data);
bool Prepend(string key, ArraySegment<byte> data);
CasResult<bool> Prepend(string key, ulong cas, ArraySegment<byte> data);
bool Store(StoreMode mode, string key, object value);
bool Store(StoreMode mode, string key, object value, DateTime expiresAt);
bool Store(StoreMode mode, string key, object value, TimeSpan validFor);
CasResult<bool> Cas(StoreMode mode, string key, object value);
CasResult<bool> Cas(StoreMode mode, string key, object value, ulong cas);
CasResult<bool> Cas(StoreMode mode, string key, object value, DateTime expiresAt, ulong cas);
CasResult<bool> Cas(StoreMode mode, string key, object value, TimeSpan validFor, ulong cas);
ulong Decrement(string key, ulong defaultValue, ulong delta);
ulong Decrement(string key, ulong defaultValue, ulong delta, DateTime expiresAt);
ulong Decrement(string key, ulong defaultValue, ulong delta, TimeSpan validFor);
CasResult<ulong> Decrement(string key, ulong defaultValue, ulong delta, ulong cas);
CasResult<ulong> Decrement(string key, ulong defaultValue, ulong delta, DateTime expiresAt, ulong cas);
CasResult<ulong> Decrement(string key, ulong defaultValue, ulong delta, TimeSpan validFor, ulong cas);
ulong Increment(string key, ulong defaultValue, ulong delta);
ulong Increment(string key, ulong defaultValue, ulong delta, DateTime expiresAt);
ulong Increment(string key, ulong defaultValue, ulong delta, TimeSpan validFor);
CasResult<ulong> Increment(string key, ulong defaultValue, ulong delta, ulong cas);
CasResult<ulong> Increment(string key, ulong defaultValue, ulong delta, DateTime expiresAt, ulong cas);
CasResult<ulong> Increment(string key, ulong defaultValue, ulong delta, TimeSpan validFor, ulong cas);
bool Remove(string key);
void FlushAll();
ServerStats Stats();
ServerStats Stats(string type);
}
}
Jump to Line
Something went wrong with that request. Please try again.