[[["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 2025-06-16 UTC."],[[["\u003cp\u003eThis document describes the \u003ccode\u003eMemcacheServiceStub\u003c/code\u003e, a Python-only stub for the memcache service designed to keep data in the local process's memory, not in external servers.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMemcacheServiceStub\u003c/code\u003e class inherits from \u003ccode\u003eAPIProxyStub\u003c/code\u003e and \u003ccode\u003eexpected_type\u003c/code\u003e, and it can be initialized with a custom \u003ccode\u003egettime\u003c/code\u003e function, \u003ccode\u003eservice_name\u003c/code\u003e, and \u003ccode\u003emax_size_bytes\u003c/code\u003e for controlling the cache size.\u003c/p\u003e\n"],["\u003cp\u003eThe stub includes methods like \u003ccode\u003eClear\u003c/code\u003e, \u003ccode\u003eCreateRPC\u003c/code\u003e, \u003ccode\u003eMakeSyncCall\u003c/code\u003e, and \u003ccode\u003eSetError\u003c/code\u003e for managing the cache and simulating API calls, including the setting of error conditions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMakeSyncCall\u003c/code\u003e method is the primary RPC entry point, requiring a \u003ccode\u003eservice\u003c/code\u003e name, \u003ccode\u003ecall\u003c/code\u003e string, \u003ccode\u003erequest\u003c/code\u003e, \u003ccode\u003eresponse\u003c/code\u003e, and an optional \u003ccode\u003erequest_id\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class variable \u003ccode\u003eTHREADSAFE\u003c/code\u003e is set to \u003ccode\u003eTrue\u003c/code\u003e, indicating that the \u003ccode\u003eMemcacheServiceStub\u003c/code\u003e can be safely used in multi-threaded environments.\u003c/p\u003e\n"]]],[],null,[]]