We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

What are the available options that you can pass in the frontendOptions array for Phalcon\Cache\Frontend\Data?

That's the title of the original question I had, but instead a more general question arise:

How can I find this sort of information without having to look at the .c source code?

I couldn't find any way of getting that information without looking here: https://github.com/phalcon/cphalcon/blob/1.3.0/ext/cache/frontend/data.c

and if I understand correctly the code, the only options available is the lifetime option.

I think that that kind of information should be easily available in the official documentation or api documentats without having to go to the source code, and maybe I missed it somewhere.

So the questions are:

1) Did I? Is the information somewhere I couldn't find apart from the .c code?

2) Is lifetime the only option available?



3.6k
  1. A lot of the phalcon C code has been rewritten in the Zephir language for phalcon 2. As far as I know phalcon 1 and 2 are still pretty similar. So for general reference I'd say check out the phalcon 2.0.0 branch. In your case: https://github.com/phalcon/cphalcon/blob/2.0.0/phalcon/cache/frontend/data.zep

  2. Looking at the zep file it seems that lifetime is the only available option.