Skip to content

Commit 52d1f88

Browse files
authored
Update models.md (#573)
1 parent a243582 commit 52d1f88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/models.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ Here is a table of the settings available in the Meta object and what they contr
120120
| Setting | Description | Default |
121121
| ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
122122
| global_key_prefix | A string prefix applied to every Redis key that the model manages. This could be something like your application's name. | "" |
123-
| model_key_prefix | A string prefix applied to the Redis key representing every model. For example, the Redis Hash key for a HashModel. This prefix is also added to the redisearch index created for every model with indexed fields. | "" |
123+
| model_key_prefix | A string prefix applied to the Redis key representing every model. For example, the Redis Hash key for a HashModel. This prefix is also added to the redisearch index created for every model with indexed fields. | f"{new_class.__module__}.{new_class.__name__}" |
124124
| primary_key_pattern | A format string producing the base string for a Redis key representing this model. This string should accept a "pk" format argument. **Note:** This is a "new style" format string, which will be called with `.format()`. | "{pk}" |
125125
| database | A redis.asyncio.Redis or redis.Redis client instance that the model will use to communicate with Redis. | A new instance created with connections.get_redis_connection(). |
126126
| primary_key_creator_cls | A class that adheres to the PrimaryKeyCreator protocol, which Redis OM will use to create a primary key for a new model instance. | UlidPrimaryKey |

0 commit comments

Comments
 (0)