/// <summary> /// Gets or sets the <see cref="TValue"/> with the specified key. /// </summary> /// <value> /// The <see cref="TValue"/>. /// </value> /// <param name="key">The key.</param> /// <returns></returns> public TValue this[TKey key] { get { DatabaseEntry dbKey = _translator.BuildKey(key); return(_translator.Value(Database.Get(dbKey).Value)); } set { Database.Put(_translator.BuildKey(key), _translator.BuildValue(value)); } }