Skip to content

Commit 616f848

Browse files
committed
Add reference to push, pull, and peek in deque
1 parent 55ce695 commit 616f848

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/tutorial.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -545,8 +545,9 @@ Deque
545545
<https://docs.python.org/3/library/collections.html#collections.deque>`_-compatible
546546
double-ended queue. Deques are a generalization of stacks and queues with fast
547547
access and editing at both front and back sides. :class:`Deque
548-
<diskcache.Deque>` objects inherit the benefits of :class:`Cache
549-
<diskcache.Cache>` objects but never evict items.
548+
<diskcache.Deque>` objects use the :meth:`push <.Cache.push>`, :meth:`pull
549+
<.Cache.pull>`, and :meth:`peek <.Cache.peek>` methods of :class:`Cache
550+
<.Cache>` objects but never evict or expire items.
550551

551552
>>> from diskcache import Deque
552553
>>> deque = Deque(range(5, 10))
@@ -579,7 +580,7 @@ Index
579580
and `ordered dictionary
580581
<https://docs.python.org/3/library/collections.html#collections.OrderedDict>`_
581582
interface. :class:`Index <diskcache.Index>` objects inherit all the benefits of
582-
:class:`Cache <diskcache.Cache>` objects but never evict items.
583+
:class:`Cache <diskcache.Cache>` objects but never evict or expire items.
583584

584585
>>> from diskcache import Index
585586
>>> index = Index([('a', 1), ('b', 2), ('c', 3)])

0 commit comments

Comments
 (0)