\google\appengine\ext\session\MemcacheContainer
bookmark_borderbookmark
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
최종
테스트 중 모의 처리를 쉽게 수행할 수 있도록 Memcache 객체와의 직접 상호작용을 삭제합니다.
방법
__construct
__construct()
Memcache 인스턴스를 초기화합니다.
닫기
close() : boolean
Memcache 인스턴스를 닫습니다.
반환
boolean
성공하면 true를 반환하고 그렇지 않으면 false를 반환합니다.
get
get(string $key) : string
Memcache에서 입력 키와 연결된 값을 찾습니다.
매개변수
이름 |
설명 |
$key
|
string
값을 찾을 입력 키 |
반환
string
입력 키와 연결된 값
set
set(string $key, string $value, integer $expire) : boolean
키-값 쌍을 만료 시간과 함께 Memcache에 삽입합니다.
매개변수
이름 |
설명 |
$key
|
string
값과 연결할 입력 키 |
$value
|
string
저장할 입력 값 |
$expire
|
integer
이 쌍이 가비지로 수집되기까지의 시간 |
반환
boolean
성공하면 true를 반환하고 그렇지 않으면 false를 반환합니다.
delete
delete(string $key) : boolean
입력 변수가 지정된 키-값 쌍을 제거합니다.
매개변수
이름 |
설명 |
$key
|
string
키-값 쌍을 삭제하려면 키를 입력하세요. |
반환
boolean
성공하면 true를 반환하고 그렇지 않으면 false를 반환합니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-03-06(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-03-06(UTC)"],[[["This documentation outlines a class that interacts with Memcache, abstracting direct interaction for easier testing."],["The `close()` method is used to close the Memcache instance, returning `true` on success, and `false` otherwise."],["The `get()` method retrieves a value from Memcache based on a given key."],["The `set()` method inserts a key-value pair into Memcache, with an expiration time parameter."],["The `delete()` method removes a key-value pair from Memcache based on the input key and returns `true` if successful, `false` otherwise."]]],[]]