I am trying to use Platform cache via Apex Code. 1. Created a new platform cache partition in my org - 10MB assigned to Org Cache.
Then created a simple apex class via dev console to access the partition, but just the declaration of the variable gives me a compiler error : Invalid type: Cache.OrgPartition
public class testpartition { private Cache.OrgPartition part; }
Has anyone encountered this before? Any advice as to where am i going wrong?
Cache
class in your org?