Ejemplo n.º 1
0
		public static Task<IOperationResult> ConcateAsync(this IMemcachedClient self, ConcatenationMode mode, string key, ArraySegment<byte> data)
		{
			return self.ConcateAsync(mode, key, data, Protocol.NO_CAS);
		}
Ejemplo n.º 2
0
		public static Task<bool> AppendAsync(this ISimpleMemcachedClient self, string key, byte[] data)
		{
			return self.ConcateAsync(ConcatenationMode.Append, key, new ArraySegment<byte>(data));
		}
Ejemplo n.º 3
0
		public static IOperationResult Concate(this IMemcachedClient self, ConcatenationMode mode, string key, ArraySegment<byte> data, ulong cas = Protocol.NO_CAS)
		{
			return self.ConcateAsync(mode, key, data, cas).RunAndUnwrap();
		}
Ejemplo n.º 4
0
		public static Task<IOperationResult> ConcateAsync(this IMemcachedClient self, ConcatenationMode mode, string key, byte[] data, ulong cas = Protocol.NO_CAS)
		{
			return self.ConcateAsync(mode, key, new ArraySegment<byte>(data), cas);
		}
Ejemplo n.º 5
0
		public static Task<bool> PrependAsync(this ISimpleMemcachedClient self, string key, ArraySegment<byte> data)
		{
			return self.ConcateAsync(ConcatenationMode.Prepend, key, data);
		}
Ejemplo n.º 6
0
		public static IOperationResult Prepend(this IMemcachedClient self, string key, byte[] data, ulong cas = Protocol.NO_CAS)
		{
			return self.ConcateAsync(ConcatenationMode.Prepend, key, new ArraySegment<byte>(data), cas).RunAndUnwrap();
		}
Ejemplo n.º 7
0
		public static bool Concate(this ISimpleMemcachedClient self, ConcatenationMode mode, string key, ArraySegment<byte> data)
		{
			return self.ConcateAsync(mode, key, data).RunAndUnwrap();
		}