Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Talk:Cache API

From MoodleDocs
Revision as of 07:05, 30 August 2012 by Tim Hunt (talk | contribs) (Created page with "==Some comments== from Tim. 1. In the "Using your cache object" section, you have get and delete returning a status. Surely it is better to have them throw an exception on erro...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Some comments

from Tim.

1. In the "Using your cache object" section, you have get and delete returning a status. Surely it is better to have them throw an exception on error, and just return on success (like the DB API).

2. make_with_params is not a great method name. Sadly, I can't do better. make_ad_hoc? make_one_off? make_custom?