Fixing swig cache settings

If `options.cache === true`, swig expects that value to equal `'memory'`.  Otherwise, it throws an error.