Simple Swift interface for cache method calls.