Skip to content

Handle errors in value generation #13

@g105b

Description

@g105b

In the example directory, 01-latlon.php makes an HTTP call, but what if the curl process times out, or what if the response isn't valid JSON?

It might be useful to be able to cache null, so simply returning null might not be the best solution. A better solution might be to throw a CacheValueGenerationException, which can be internally caught and ignored.

Metadata

Metadata

Assignees

Labels

enhancementNon-breaking improvements to existing behaviour

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions