From cfa5ff5e9b989588c5beec3d3901ba63f238fd80 Mon Sep 17 00:00:00 2001
From: hofmockel <dreagonfly@gmx.de>
Date: Sun, 30 Aug 2015 12:22:36 +0200
Subject: [PATCH] Document the new row_cache option.

---
 docs/api/options.rst | 15 +++++++++++----
 docs/changelog.rst   |  1 +
 2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/docs/api/options.rst b/docs/api/options.rst
index 7b27d99..a5e9d07 100644
--- a/docs/api/options.rst
+++ b/docs/api/options.rst
@@ -716,7 +716,14 @@ Options object
         3. ``If compare(k1, k2) <= 0, then compare(prefix(k1), prefix(k2)) <= 0``
         4. ``prefix(prefix(key)) == prefix(key)``
 
-    *Default:* ``None``
+        *Default:* ``None``
+
+    .. py:attribute:: row_cache
+
+        A global cache for table-level rows. If ``None`` this cache is not used.
+        Otherwise it must be an instance of :py:class:`rocksdb.LRUCache`
+
+        *Default:* ``None``
 
 
 CompressionTypes
@@ -765,9 +772,9 @@ LRUCache
 
     .. py:method:: __init__(capacity, shard_bits=None)
 
-        Create a new cache with a fixed size capacity. The cache is sharded
-        to 2^numShardBits shards, by hash of the key. The total capacity
-        is divided and evenly assigned to each shard.
+        Create a new cache with a fixed size capacity (in bytes).
+        The cache is sharded to 2^numShardBits shards, by hash of the key.
+        The total capacity is divided and evenly assigned to each shard.
 
 .. _table_factories_label:
 
diff --git a/docs/changelog.rst b/docs/changelog.rst
index 44f8479..18369a7 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -5,6 +5,7 @@ Version 0.4
 -----------
 
 * Added :py:func:`repair_db`.
+* Added :py:meth:`rocksdb.Options.row_cache`
 
 Backward Incompatible Changes:
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-- 
GitLab