marcoCasamento / Hangfire.Redis.StackExchange

HangFire Redis storage based on original (and now unsupported) Hangfire.Redis but using lovely StackExchange.Redis client
Other
448 stars 108 forks source link

Can you change RedisStorageOption From Private to Public #127

Closed ltb27 closed 8 months ago

ltb27 commented 10 months ago

Now, I Want to change Prefix of job creating baseon some info like host name . but i read the source code , RedisStorage now has the access modifier is private image

Toumash commented 8 months ago

If you want to change prefix based on hostname just use already available RedisStorageOptions.Prefix

hangfireConfig.UseRedisStorage(redisSettings.ConnectionString,new RedisStorageOptions()
{
    Prefix = Environment.MachineName
});
Toumash commented 8 months ago

Should be closed

marcoCasamento commented 8 months ago

right