{
    "content": [
        {
            "type": "text",
            "text": "# Cache::CacheSizer (perldoc)\n\n## NAME\n\nCache::CacheSizer -- component object for managing the size of caches\n\n## SYNOPSIS\n\nuse Cache::CacheSizer;\nmy $sizer = new Cache::CacheSizer( $cache, $maxsize );\n$sizer->limitsize( $newsize );\n\n## DESCRIPTION\n\nThe CacheSizer class is used internally in SizeAware caches such as SizeAwareFileCache to\nencapsulate the logic of limiting cache size.\n\n## Sections\n\n- **NAME**\n- **DESCRIPTION**\n- **SYNOPSIS**\n- **METHODS** (3 subsections)\n- **PROPERTIES**\n- **SEE ALSO**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Cache::CacheSizer",
        "section": "",
        "mode": "perldoc",
        "summary": "Cache::CacheSizer -- component object for managing the size of caches",
        "synopsis": "use Cache::CacheSizer;\nmy $sizer = new Cache::CacheSizer( $cache, $maxsize );\n$sizer->limitsize( $newsize );",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "new",
                        "lines": 3
                    },
                    {
                        "name": "update_access_time",
                        "lines": 2
                    },
                    {
                        "name": "limit_size",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "PROPERTIES",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Cache::CacheSizer -- component object for managing the size of caches\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The CacheSizer class is used internally in SizeAware caches such as SizeAwareFileCache to\nencapsulate the logic of limiting cache size.\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use Cache::CacheSizer;\n\nmy $sizer = new Cache::CacheSizer( $cache, $maxsize );\n\n$sizer->limitsize( $newsize );\n",
                "subsections": []
            },
            "METHODS": {
                "content": "",
                "subsections": [
                    {
                        "name": "new",
                        "content": "Construct a new Cache::CacheSizer object for the cache *$cache* with a maximum size of\n*$maxsize*.\n"
                    },
                    {
                        "name": "update_access_time",
                        "content": "Inform the cache that the object specified by *$key* has been accessed.\n"
                    },
                    {
                        "name": "limit_size",
                        "content": "Use the sizing algorithms to get the cache down under *$newsize* if possible.\n"
                    }
                ]
            },
            "PROPERTIES": {
                "content": "getmaxsize\nThe desired size limit for the cache under control.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "Cache::Cache, Cache::CacheMetaData, Cache::SizeAwareCache\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Original author: DeWitt Clinton <dewitt@unto.net>\n\nLast author: $Author: dclinton $\n\nCopyright (C) 2001-2003 DeWitt Clinton\n",
                "subsections": []
            }
        }
    }
}