File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -312,9 +312,13 @@ Let's store hash and timestamp pair for foo spider. Usual workflow with `Collect
312312 >>> foo_store.count()
313313 1
314314 >>> foo_store.get('002d050ee3ff6192dcbecc4e4b4457d7')
315- '1447221694537'
316- >>> for result in foo_store.iter_values():
317- # do something with _key & value pair
315+ {u'value': u'1447221694537'}
316+ >>> # iterate over _key & value pair
317+ ... list(foo_store.iter_values())
318+ [{u'_key': u'002d050ee3ff6192dcbecc4e4b4457d7', u'value': u'1447221694537'}]
319+ >>> # filter by multiple keys - only values for keys that exist will be returned
320+ ... list(foo_store.iter_values(key=['002d050ee3ff6192dcbecc4e4b4457d7', 'blah']))
321+ [{u'_key': u'002d050ee3ff6192dcbecc4e4b4457d7', u'value': u'1447221694537'}]
318322 >>> foo_store.delete('002d050ee3ff6192dcbecc4e4b4457d7')
319323 >>> foo_store.count()
320324 0
You can’t perform that action at this time.
0 commit comments