Skip to content

Question: Enabling caching #463

@leofmoura

Description

@leofmoura

Hello,

I have a solution using OpenFeature.Contrib.Providers.Flagsmith" Version="0.2.1".

My config looks like this one:

// Flagsmith client configuration
var flagsmithConfig = new FlagsmithConfiguration
{
    ApiUrl = flagsSmithProviderOptions.BaseUri,
    CacheConfig = new CacheConfig(true), // Cache for 5 minutes
    EnvironmentKey = flagsSmithProviderOptions.EnvironmentKey,
    EnableAnalytics = false,
    Retries = 1,
    Logger = logger // Inject logger for cache monitoring and debugging

First, I don't see any logs (my logger instance is: ILogger logger).
Second, looks like I need also to enable the "EnableClientSideEvaluation = true," in order to enable cache (It doesn't matter if I set CacheConfig to true.

Docs doesn't say much about this.

Thanks for you help

Metadata

Metadata

Assignees

No one assigned

    Labels

    provider:FlagsmithIssues related to provider Flagsmith

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions