implemented interface gob encode and decode for redit cacher