@@ -55,7 +55,7 @@ func DataStore() *DataStoreBuilder {
55
55
//
56
56
// config.DataStore = ldredis.DataStore().URL("redis://hostname").Prefix("prefix")
57
57
//
58
- // You do not need to call the builder's CreatePersistentDataStore () method yourself to build the
58
+ // You do not need to call the builder's Build () method yourself to build the
59
59
// actual data store; that will be done by the SDK.
60
60
type DataStoreBuilder struct {
61
61
prefix string
@@ -114,7 +114,7 @@ func (b *DataStoreBuilder) Prefix(prefix string) *DataStoreBuilder {
114
114
return b
115
115
}
116
116
117
- // Options sets all of the parameters supported by the go-redis UniversalOptions type.
117
+ // Options sets all the parameters supported by the go-redis UniversalOptions type.
118
118
//
119
119
// This overwrites any previous setting of HostAndPort or Addresses.
120
120
func (b * DataStoreBuilder ) Options (options redis.UniversalOptions ) * DataStoreBuilder {
@@ -124,7 +124,7 @@ func (b *DataStoreBuilder) Options(options redis.UniversalOptions) *DataStoreBui
124
124
125
125
// URL specifies the Redis host URL. If not specified, the default value is DefaultURL.
126
126
//
127
- // Note that some Redis client features can specified either as part of the URL or with Options. For instance,
127
+ // Note that some Redis client features can be specified either as part of the URL or with Options. For instance,
128
128
// the Password and DB fields in Options can be part of a "redis://" URL
129
129
// (https://www.iana.org/assignments/uri-schemes/prov/redis), and TLS can be enabled either by setting the
130
130
// TLSConfig in Options or by using a "rediss://" URL (https://www.iana.org/assignments/uri-schemes/prov/rediss).
@@ -153,7 +153,7 @@ func (b *DataStoreBuilder) Build(
153
153
154
154
if b .url != "" {
155
155
if len (redisOpts .Addrs ) > 0 {
156
- return nil , errors .New ("Redis data store must be configured with either Options.Address or URL, but not both" )
156
+ return nil , errors .New ("redis data store must be configured with either Options.Address or URL, but not both" )
157
157
}
158
158
parsed , err := redis .ParseURL (b .url )
159
159
if err != nil {
0 commit comments