CacheGet()
Gets an object that is stored in the cache.
	CacheGet( id=string, throwWhenNotExist=object, cacheName=string );
	
	Returns: object
| Argument | Description | Default | 
|---|---|---|
| 
								 
									id
								 
								
									string,
									
										required
									
								
							 | 
							
								edit
								 name of the element to return Alias: name, key  | 
 								|
| 
								 
									throwWhenNotExist
								 
								
									object,
									
										optional
									
								
							 | 
							
								edit
								 define if the functions throws an exception when the element does not exist. Default is false.  | 
 								
 									 false  | 
						
| 
								 
									cacheName
								 
								
									string,
									
										optional
									
								
							 | 
							
								edit
								 definition of the cache used by name, when not set the "default Object Cache" defined in Lucee Administrator is used instead. Alias: cache, region  | 
 								
Examples
edit  cachePut(id:'abc', value:'123',timeSpan:CreateTimeSpan(0,0,0,1),cacheName:'fruits');
  getcache = cacheGet(id:'abc',cacheName:'fruits');
  writeDump(getcache);
See also
- Cache
 - Search Issue Tracker open_in_new
 - Search Lucee Test Cases open_in_new (good for further, detailed examples)