PHP 인터페이스 Webiny\Component\Rest\Interfaces\CacheKeyInterface
Implement this interface to define your own method for generating a cache key.
Some common use cases are to generate a cache key based on some cookie or token.
Note that you should still include the url, query parameters and the http method.
Always take into account that generating the cache key doesn't actually take longer than getting
the data without cache.
파일 보기
프로젝트 열기: Webiny/Framework
공개 메소드들
메소드 상세
Best practice is hash it with some hashing algorithm like md5 or sha1.
Note that the returned key is used "as it is", nothing is appended to it.