thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

Business Platforms & EA · Intermediate

AuraEnabled Annotation

Annotation that exposes Apex methods to Lightning components; cacheable=true enables client caching and use with @wire.

Definition

Methods must be static and public or global. cacheable=true methods cannot perform DML and are required for wired calls; imperative calls can use non-cacheable methods.

Example

@AuraEnabled(cacheable=true) public static List<Account> getAccounts() {...}

Exam tip

A method used with @wire must be cacheable=true and therefore cannot modify data.

Related terms