NYCPHP Meetup

[nycphp-talk] Need help understanding NULL

lists at nopersonal.info lists at nopersonal.info
Sat Aug 29 19:31:51 EDT 2009


Andy Dirnberger wrote:
> Before querying the database, I check to see if the result of the
> query has been cached.  I call a function that will either return the
> value in the cache or null, either because the cache has expired or
> because it was never set.  When I receive a return value other than
> null, I skip the database query.  When null comes back, I query the
> database and update the cache.

Andy, thanks a bunch for the example.

Bev




More information about the talk mailing list