GetTopK 获取 TopK Memory
(ctx context.Context, namespace string, k int, orderBy OrderBy)
| 320 | |
| 321 | // GetTopK 获取 TopK Memory |
| 322 | func (s *PostgreSQLStore) GetTopK(ctx context.Context, namespace string, k int, orderBy OrderBy) ([]*LogicMemory, error) { |
| 323 | return s.List(ctx, namespace, WithTopK(k), WithOrderBy(orderBy)) |
| 324 | } |
| 325 | |
| 326 | // IncrementAccessCount 增加访问计数 |
| 327 | func (s *PostgreSQLStore) IncrementAccessCount(ctx context.Context, namespace, key string) error { |
nothing calls this directly
no test coverage detected