     1: <?php
     2:
     3:     /**
     4:      * Single-file cache using PHP-native serialization to encode data
     5:      */
     6:     class Syllable_Cache_Serialized extends Syllable_Cache_FileAbstract {
     7:         protected function encode($array) {
     8:             return serialize($array);
     9:         }
    10:
    11:         protected function decode($array) {
    12:             return unserialize($array);
    13:         }
    14:
    15:         protected function getFilename($language) {
    16:             return "syllable.{$language}.serialized";
    17:         }
    18:     }