Interface Cache<T>

  • Type Parameters:
    T - type for cache object
    All Superinterfaces:
    Indexer<T>, Store<T>

    public interface Cache<T>
    extends Indexer<T>
    It basically saves and indexes all the entries.
    • Method Detail

      • metaNamespaceKeyFunc

        static String metaNamespaceKeyFunc​(io.fabric8.kubernetes.api.model.HasMetadata obj)
        It's is a convenient default KeyFunc which know show to make keys for API objects which implement HasMetadata interface. The key uses the format namespace/name unless namespace is empty, then it's just name
        Parameters:
        obj - specific object
        Returns:
        the key
      • metaUidKeyFunc

        static String metaUidKeyFunc​(io.fabric8.kubernetes.api.model.HasMetadata obj)
      • metaNamespaceIndexFunc

        static List<String> metaNamespaceIndexFunc​(io.fabric8.kubernetes.api.model.HasMetadata obj)
        It is a default index function that indexes based on an object's namespace
        Parameters:
        obj - the specific object
        Returns:
        the indexed value