original_string: public function save()
      {
          // Update time - now
          $updated = time();
  
          // Update timestamp
          $this->entries[$this->timestampKey] = $updated;
  
          // Update timestamp manager
          if ($this->timestampManager) {
              $this->timestampManager->update($updated);
          }
  
          return (bool) file_put_contents($this->path, json_encode($this->entries));
      }
code: public function save()
      {
          // Update time - now
          $updated = time();
  
          // Update timestamp
          $this->entries[$this->timestampKey] = $updated;
  
          // Update timestamp manager
          if ($this->timestampManager) {
              $this->timestampManager->update($updated);
          }
  
          return (bool) file_put_contents($this->path, json_encode($this->entries));
      }
code_tokens: public function save ( ) { // Update time - now $ updated = time ( ) ; // Update timestamp $ this -> entries [ $ this -> timestampKey ] = $ updated ; // Update timestamp manager if ( $ this -> timestampManager ) { $ this -> timestampManager -> update ( $ updated ) ; } return ( bool ) file_put_contents ( $ this -> path , json_encode ( $ this -> entries ) ) ; }
docstring: Save to cache.
  
  @return bool
docstring_tokens: Save to cache .