Q.Cache Class
Q.Cache constructor
Constructor
Methods
each
    
        
            (
    
    
    
    
    
    
    
    
    
    - 
                    
                        args
- 
                    
                        callback
Cycles through all the entries in the cache
get
    
        
            (
    
    
        
            Mixed
        
    
    
    
    
    
    
    
    
    - 
                    
                        key
- 
                    
                        options
Accesses the cache and gets an entry from it
Parameters:
Returns:
                
                    
                        Mixed:
                    
                    
        whatever is stored there, or else returns undefined
key
    
        
            (
    
    
        
            String
        
    
    
    
    
    
        static
    
    
    
    
    - 
                    
                        args
- 
                    
                        functions
Generates the key under which things will be stored in a cache
Parameters:
Returns:
process
    
        
            (
    
    
        
            Mixed
        
    
    
    
    
    
        static
    
    
    
    
    - 
                    
                        name
- 
                    
                        options
Returns:
                
                    
                        Mixed:
                    
                
            
        remove
    
        
            (
    
    
        
            Boolean
        
    
    
    
    
    
    
    
    
    - 
                    
                        key
Accesses the cache and removes an entry from it.
Parameters:
- 
                    
                        keyStringthe key of the entry to remove 
Returns:
                
                    
                        Boolean:
                    
                    
        whether there was an existing entry under that key
set
    
        
            (
    
    
        
            Boolean
        
    
    
    
    
    
    
    
    
    - 
                    
                        key
- 
                    
                        cbpos
- 
                    
                        subject
- 
                    
                        params
- 
                    
                        options
Accesses the cache and sets an entry in it
Parameters:
- 
                    
                        keyStringthe key to save the entry under, or an array of arguments 
- 
                    
                        cbposNumberthe position of the callback 
- 
                    
                        subjectObjectThe "this" object for the callback 
- 
                    
                        paramsArrayThe parameters for the callback 
- 
                    
                        optionsObjectsupports the following options: - 
                                
                                    [dontTouch=false]Boolean optionalif true, then doesn't mark item as most recently used 
 
- 
                                
                                    
Returns:
                
                    
                        Boolean:
                    
                    
        whether there was an existing entry under that key