Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

407
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!