Gck.Object.prototype.cache_lookup

function cache_lookup(attr_types: Array(Number(gulong)), cancellable: Gio.Cancellable): Gck.Attributes {
    // Gjs wrapper for gck_object_cache_lookup()
}
  

Lookup attributes in the cache, or retrieve them from the object if necessary.

If object is a Gck.ObjectCache then this will lookup the attributes there first if available, otherwise will read them from the object and update the cache.

If object is not a Gck.ObjectCache, then the attributes will simply be read from the object.

This may block, use the asynchronous version when this is not desirable

attr_types

the types of attributes to update

cancellable

optional cancellation object

Returns

the attributes retrieved or null on failure