Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

411
Visualizações
Laravel Octane Cache not persistent
  • Octane Version: 1.0.8
  • Laravel Version: 8.50.0
  • PHP Version: 8.0
  • Server & Version: Swoole 4.6.7
  • Database Driver & Version: MySQL 8.0.25

Everything works as expected when using Redis for example.

cache()->store('redis')->remember("test_key", now()->addMinutes(), fn() => 'test_value');

Cache::remember() method does not store the value when using Laravel Octane Cache. (returns null)

cache()->store('octane')->remember("test_key", now()->addMinutes(), fn() => 'test_value');

I did another tests and seems that Octane store is not persistent. If I use put then get immediately will receive the value, if I use put then refresh the page the value will be null. This is only for Octane driver. Redis store works fine.

cache()->store('octane')->put("test_key", 'test_value', now()->addMinutes());

cache()->store('octane')->get("test_key"); => returns null

Redis works as expected.

cache()->store('redis')->put("test_key", 'test_value', now()->addMinutes());

cache()->store('redis')->get("test_key"); => returns test_value

over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda