public function addEncryptedId(Platforms $platform) { $encrypted = $platform->getEncryptedId(); $this->redis()->hMset($this->getEncryptedKey(), array($platform->id => $encrypted, $encrypted => $platform->id)); }