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

349
Views
Symfony / PHP - Best way to store single value

Assuming that I have an application running on Symfony 3.2 / Doctrine.

Question : What is the best way to store a single value that gonna change over some actions.

First thoughts : Im thinking that creating an Entity that is going to have a single property which will create a table with a single column that is going to have a single value (changing over some actions), is not an optimized solution.

I have also have thought about storing that value on a text file, but im saying that there might be another (better and more optimized) solution to this scenario.

Hint (if it can help) : My value is gonna be a generated PHP uniqid

Thank you in advance.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Symfony 3.1 included an interesting Cache component with multiple adapters (Filesystem, APCu, Redis...): http://symfony.com/doc/current/components/cache.html

As Symfony 3.2 the API seems to be confusing but Symfony 3.3 will include a SimpleCache API, way more elegant: http://symfony.com/blog/new-in-symfony-3-3-simple-cache

over 4 years ago · Santiago Trujillo Report
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!