/// <summary> /// Retrieves the default cache from the remote server. /// </summary> /// <param name="m">the marshaller policy for this cache</param> /// /// <returns>a remote cache instance which can be used to send requests to the default cache</returns> public IRemoteCache <K, V> GetCache <K, V>(IMarshaller m = null) { if (Infinispan.HotRod.SWIG.Util.Use64()) { return(new RemoteCacheSWIGGenImpl <K, V>(manager, manager.GetByteArrayCache(), (m != null) ? m : marshaller, argMarshaller, configuration)); } else { return(new RemoteCacheSWIGGenImpl <K, V>(manager, manager.GetByteArrayCache(), (m != null) ? m : marshaller, argMarshaller, configuration)); } }
/// <summary> /// Retrieves the default cache from the remote server. /// </summary> /// /// <returns>a remote cache instance which can be used to send requests to the default cache</returns> public IRemoteCache <K, V> GetCache <K, V>() { if (Infinispan.HotRod.SWIG.Util.Use64()) { return(new RemoteCacheSWIG64Impl <K, V>(manager.GetByteArrayCache(), serializer)); } else { return(new RemoteCacheSWIG32Impl <K, V>(manager.GetByteArrayCache(), serializer)); } }