Peeking at items will update stats, but will not alter the eviction order
of the item. Unlike get(), an item is fetched even if it is delete locked.
Args
key
The key in memcache to look up. See docs on Client for details of
format.
namespace
a string specifying an optional namespace to use in the
request.
Returns
An ItemWithTimestamps object which contains the value of the item along
with timestamp metadata - expiration timestamp, last access timestamp and
delete timestamp (if the item is delete locked).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-11-14 UTC."],[[["The `peek` function retrieves an item from memcache along with its timestamp metadata, without altering its eviction order."],["Peeking at items updates the statistics but does not change the item's position in the eviction queue."],["The `key` argument specifies the memcache item to retrieve, and `namespace` is an optional string for specifying a namespace."],["Even delete-locked items can be fetched using the `peek` function, unlike with `get`."],["The function returns an `ItemWithTimestamps` object, including the item's value, expiration timestamp, last access timestamp, and delete timestamp."]]],[]]