Skip to content
This repository was archived by the owner on Sep 7, 2021. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.
This repository was archived by the owner on Sep 7, 2021. It is now read-only.

Cache failed for pointer array #894

Open
@sleagon

Description

@sleagon
// cache failed
games := make([]*Game, 0) // pointer array
session.Find(&games)

// cache hit
games := make([]Game, 0) // struct array
session.Find(&games)

reason:

if bean == nil || reflect.ValueOf(bean).Elem().Type() != ckt {
    // ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions