We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 935cc39 commit 8d950e5Copy full SHA for 8d950e5
docs/tutorial.rst
@@ -86,14 +86,13 @@ in a `with` statement to safeguard calling :meth:`close
86
87
>>> cache.close()
88
>>> with Cache(cache.directory) as reference:
89
- ... pass
+ ... reference.set('key', 'value')
90
+ True
91
92
Closed Cache objects will automatically re-open when accessed. But opening
93
Cache objects is relatively slow, and since all operations are atomic, may be
94
safely left open.
95
- >>> cache.set('key', 'value')
96
- True
97
98
>>> cache.get('key') # Automatically opens, but slower.
99
'value'
0 commit comments