PerlDoc

See PublishedAPI for packages intended to be used by Plugin and Contrib authors, or browse all packages.
See also Developing plugins, Developer's Bible, Technical Overview


Parent package: Foswiki::Prefs
Child packages:

    internal package Foswiki::Prefs::CacheRAM is a Foswiki::Prefs::TopicRAM

    This is a preference backend used to get preferences defined in a topic and cache them in memory.

    ClassMethod new(@_)

    Creates a preferences backend object.

    ObjectMethod finish()

    Break circular references.

    ObjectMethod cacheHits() → $int

    returns the number of hits to the memory cache

    ObjectMethod getEntry() → \%entry

    returns a cache entry for the given topic object

    ObjectMethod setEntry() → \%entry

    stores the private values into the global cache.

    ObjectMethod getModificationTime() → $timestamp

    returns the file modification time of the topic object

    ObjectMethod invalidate($metaOrPath)

    this method can be called as an object as well as a class method. If called as a class method the $metaOrPath parameter is mandatory

    ObjectMethod getCacheKey($metaOrPath) → $string

    this method is an object as well as class method, similar to invalidate(). it returns the key for the current object to cache its preferences for.

    Kontakt
    Pädagogische Hochschule Schwyz
    Zaystrasse 42
    CH-6410 Goldau
    T +41 41 859 05 90
    info@phsz.ch Dies ist ein Wiki des Fachkerns Medien und Informatik der Pädagogischen Hochschule Schwyz. Für Fragen wenden Sie sich bitte an wikiadmin@phsz.ch
    This page was cached on 07 Feb 2025 - 20:10.
    This website is using cookies. More info. That's Fine