public function save( EntityDocument $entity ) {
		if( !$this->cache->save(
			$this->getCacheIdFromEntityId( $entity->getId() ),
			$entity,
			$this->lifeTime
		) ) {
			throw new RuntimeException( 'The cache failed to save for entity ' . $entity->getId()->getSerialization() );
		}
	}
public function save( EntityDocument $entity ) {
		if( !$this->cache->save(
			$this->getCacheIdFromEntityId( $entity->getId() ),
			$entity,
			$this->lifeTime
		) ) {
			throw new RuntimeException( 'The cache failed to save for entity ' . $entity->getId()->getSerialization() );
		}
	}
public function save ( EntityDocument $ entity ) { if ( ! $ this -> cache -> save ( $ this -> getCacheIdFromEntityId ( $ entity -> getId ( ) ) , $ entity , $ this -> lifeTime ) ) { throw new RuntimeException ( 'The cache failed to save for entity ' . $ entity -> getId ( ) -> getSerialization ( ) ) ; } }
Save an Entity in the cache.

@param EntityDocument $entity
Save an Entity in the cache .