Skip to content

MCacheViewer

Overview

MCacheViewer is a command-line tool that allows viewing and inspecting the content of cache files created by the MCache class from the mlib library. This tool is particularly useful for debugging and analyzing cached data.

Features

  • Reading and decoding MCache cache files
  • Formatted display of serialized data
  • Support for different data types (arrays, objects, strings, etc.)
  • Simple and intuitive command-line interface
  • Clear error message handling

Installation

mcacheviewer is structured as follows:

- mcacheview       <-- bash file
- mcacheviewer/
    - mcacheview.php
  1. Copy everything to a directory of your choice (for example /usr/local/bin/)
  2. Make the script executable:
    chmod +x /path/to/mcacheviewer/mcacheview
    
  3. If the directory is not in your PATH, add it or use the full path

Usage

Basic Syntax

mcacheview -f <cache_file>

This tool is part of the MyLib ecosystem and is designed to work in complement to the MCache class.