private void SetItem(string name, object value) { var fullKey = keyPrefix + name; if (namedCache.Contains(fullKey)) { namedCache.Insert(fullKey, value, createPolicy, true, false); } else { namedCache.Insert(fullKey, value, createPolicy, true, true); IncrementCount(1); var metadata = new ObjectMetadata(); metadata.IndexCollection[KeyPrefixIndex] = keyPrefixIndexValue; namedCache.SetMetadata(fullKey, metadata, true); } IncrementVersion(); }