Esempio n. 1
0
        public IDictionary <K, V> GetAll(ISet <K> keySet)
        {
            ByteArrayVector v = new ByteArrayVector();

            foreach (var k in keySet)
            {
                v.Add(wrap(k));
            }
            return(unwrap(cache.getAll(v)));
        }
Esempio n. 2
0
        public ISet <K> KeySet()
        {
            ByteArrayVector swigResult = hotrodcs.as_vector(cache.keySet());
            HashSet <K>     result     = new HashSet <K>();

            if (swigResult != null)
            {
                foreach (ByteArray item in swigResult)
                {
                    result.Add((K)unwrap(item));
                }
            }
            return((ISet <K>)result);
        }