lib/jamf/api/connection.rb
# Flush the collection and/or ea cache for the given class,
# or all cached data
# @param klass[Class] the class of cache to flush
#
# @return [void]
#
Flush the collection and/or ea cache for the given class,
or all cached data
Flush the collection and / or ea cache for the given class or all cached data
def flushcache(klass = nil)
      if klass
        @collection_cache.delete klass
        @singleton_cache.delete klass
        @ext_attr_cache.delete klass
      else
        @collection_cache = {}
        @singleton_cache = {}
        @ext_attr_cache = {}
      end
    end
def flushcache ( klass = nil ) if klass @collection_cache . delete klass @singleton_cache . delete klass @ext_attr_cache . delete klass else @collection_cache = { } @singleton_cache = { } @ext_attr_cache = { } end end
Flush the collection and/or ea cache for the given class,
or all cached data
Flush the collection and / or ea cache for the given class or all cached data
None
void
klass
the class of cache to flush
the class of cache to flush