Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no way to determine if bool(false) was stored, or the key couldn't be looked up #34

Open
OlliL opened this issue Feb 28, 2014 · 1 comment

Comments

@OlliL
Copy link

OlliL commented Feb 28, 2014

Hi,

I have some variables containing bool(false) or bool(true) I'd like to add and get. The problem is now, when I store false and get it back later, I don't know if false was stored, or the key is unknown to yac.

In Memcached for example I can check Memcached::getResultCode() with Memcached::RES_NOTFOUND.
In Yac, when false is returned, I have to do all this expensive-SQL-stuff to re-determine the information.

@thbourlove
Copy link

Hi, @OlliL .
Maybe #33 is a good choice for you. with this patch, you can set yac.default_null = 1 in your php.ini. Then you will get null when the key is unknown to yac.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants