簡體   English   中英

Memcache是​​必需的錯誤-AppEngine上的Symfony

[英]Memcache is required error - symfony on appengine

使用appengine-starter-symfony-project( https://github.com/GoogleCloudPlatform/appengine-symfony-starter-project )創建了新項目,並嘗試如下運行app / server:

composer run-script server --timeout=0

收到錯誤:

 // Clearing the cache for the dev environment with debug
 // false



  [Symfony\Component\Cache\Exception\CacheException]
  Memcached >= 2.2.0 is required

在Xampp(Win 10)上運行PHP版本7.2.8,在ext文件夾中看不到php_memcache。

確實,這是預期的行為。 如果您查看config.yml ,將會看到以下內容:

services:
    memcache:
        class: Memcache
    session.handler.memcache:
        class: Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcacheSessionHandler
        arguments:
          - "@memcache"
          - { prefix: ~, expiretime: ~ }

基本上,緩存取決於Memchace 您可以調整並切換到其他供應商,也可以安裝適當的DLL。

希望這個對你有幫助...

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM